Quote:
Originally posted by mfreemantle
The problem is that using sed with filenames that contain the / character causes matches to fail.
eg:
fileName=/mnt/someinputfile
sed -e "s/param1/${fileName}/g" somefile.txt > runfile
Ideas??
|
Try:
sed -e "s=param1=${fileName}=g" somefile.txt > runfile
Sed's s command does not require the use of a slash as a delimiter. You can use
any character. Pick a character that is not in your data.