Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

two sed command together

rr=abcd # in shell

sed -i "s/aaa/$rr/g" file.dat 

# -i will update thefile, 
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #sed #command
ADD COMMENT
Topic
Name
4+3 =