How to edit a specific parameter in many files simultaneously
Hi
I need to change following parameter in multiples files.It's hard to edit them one by one with vi. Code:
enabled=1 Code:
enabled=0 Code:
sed 's/enabled=1/enabled=0/g' * Please guide me thank you |
man sed will give you your answer.
|
i would use a for loop to go thru each file and edit everything you want in an automated way:
Code:
for item in * |
Quote:
|
All times are GMT -5. The time now is 09:59 PM. |