Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed substitute a word in a file by the content in another file

sed -e s/100/$(tr 
 $ < file2)/ -e s/$/
/g file1
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #sed #substitute #word #file #content #file
ADD COMMENT
Topic
Name
9+8 =