Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
using parameters in sed???
Name: hernandez Date: November 21, 2003 at 01:50:27 Pacific OS: xp / korn shell CPU/Ram: 196
Comment:
Hi, Anyone know a way to use parameters in a sed or a way round it?? I'm trying to do something like this:
sed 's/${USER}/${NEW_USER}/g'
but it does nothing at all... i'm running this in the korn shell
Summary: Hi I am using sed in a shell script. I am having problems in using parameters in sed for search and replace. TEST=`grep "'/" source | head -1` sed s/$TEST/string1/g source.txt > target.txt This doesn...
Summary: Hi Folks, In sed and/or awk, how would I formulate an if/else logic to skip a command if a specific text already exist in a file? I am getting multiple entries in a text file when the script is execu...