Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed replace first in file

sed '0,/REPLACESTHIS/s//WITHTHAT/' myfile.txt
 
PREVIOUS NEXT
Tagged: #sed #replace #file
ADD COMMENT
Topic
Name
3+1 =