Wednesday, July 8, 2020

Find and Replace in Terminal

To Find and Replace in Terminal use this

for first occurrence:
sed -i 's/FIND/REPLACE/' <file_name>

for global occurrence: 
sed -i 's/FIND/REPLACE/g' <file_name>
UA-39217154-2