Discussion: shell script
Afficher un message
Vieux 17/05/2007, 08h43   #1
Ivan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.

  Réponse avec citation
 
Page generated in 0,05472 seconds with 9 queries