DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+3 =
Submit