Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed replace into new file

You can try this sed command

sed 's/,(.*china)/,Tomas_proxy.lt/1/' FileName
or

sed 's/,(.*china)/,Tomas_proxy.lt/1/' FileName > NewFile
or

sed  -i.bak 's/,(.*china)/,Tomas_proxy.lt/1/' FileName 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sed #replace #file
ADD COMMENT
Topic
Name
1+6 =