linux search replace
Substitution sed -i 's/<oldstring>/<newstri ng>/g' <file>
-i means in place, without it the file wont be updated
Deletion sed '<start>,<end>d' < file>
-i means in place, without it the file wont be updated
Deletion sed '<start>,<end>d' < file>
perl -pi -w -e 's/search/replace/g;' *.txt
0 Comments:
Post a Comment
<< Home