
January 30th, 2012, 06:37 PM
|
|
|
|
You can have, if memory serves, multiple edit commands using multiple -e parameters. You could have a first loop, going through your file that contains search/replace pairs and build up a command line string to use for sed, then just plug that in where you have your current command.
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|