Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

replace using sed

#on my mac
sed -i -e 's/old-text/new-text/g' text.txt
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #replace #sed
ADD COMMENT
Topic
Name
3+7 =