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
 
PREVIOUS NEXT
Tagged: #replace #sed
ADD COMMENT
Topic
Name
6+4 =