sed to change some values in a file permanently
Hi,
I have a file where I there are some 1500 lines and in there I want to change some values. For that I am using sed like below: PHP Code:
Any clue please. |
You don't need cat, nor grep - use sed's address facility (see the manpage). Something like this
Code:
sed -i /network.type/s/0/1' test.css |
Thanks a lot. just what I was looking for.
|
All times are GMT -5. The time now is 10:33 PM. |