DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
passing bash variable to sed
rr=abcd # in shell sed -i "s/aaa/$rr/g" file.dat # -i will update thefile,
Source by unix.stackexchange.com #
PREVIOUS
NEXT
Tagged:
#passing
#bash
#variable
#sed
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit