I'm very interested by the tips 52 et 53
I would like to know if it is possible, to subsitute something in the previous line or following line the line containing the patter. I don't know if it is possible
cat file
foo bar
the rate of gold very high
dollar usa currency
Our currency your problem
gold
I would like to transform it with one line sed script to
foo bar
PREVIOUS LINE PATTERN DOLLAR
dollar usa currency
FOLLOWING LINE PATTERN
gold
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
Hi,
I'm very interested by the tips 52 et 53
I would like to know if it is possible, to subsitute something in the previous line or following line the line containing the patter. I don't know if it is possible
cat file
foo bar
the rate of gold very high
dollar usa currency
Our currency your problem
gold
I would like to transform it with one line sed script to
foo bar
PREVIOUS LINE PATTERN DOLLAR
dollar usa currency
FOLLOWING LINE PATTERN
gold
Thanks
Reply To This Comment