Useful Linux Tips
#Replace all occurrence of City with Town in every txt file within the current directory.
$sed -i 's/City/Town/g' *.txt
Using vim editor, replace foo with bar from line 23 to 30
:23,30s/foo/bar/g
#Replace all occurrence of City with Town in every txt file within the current directory.
$sed -i 's/City/Town/g' *.txt
Using vim editor, replace foo with bar from line 23 to 30
:23,30s/foo/bar/g