shell script
Hi all..
I need to make a script incorporating the following command:
sed -i '/$NAME/d' */test1
I'm having a bit of trouble .. I'd be happy with the script to look
like this:
sed -i '/$1/d' */test1
So that when I type
$ ./script dan
The command sed -i '/dan/d' */test1 would execute, but unfortunately
it does not work this way..
Not when I use
sed -i '/$1/d' */test1
nor when I use
sed -i '/"$1"/d' */test1
Would anyone have any ideas on how I can get this to work?
Thanks,
Ivan.
|