Re: shell script
On 16 May 2007 23:43:30 -0700, Ivan
<find.ivan@gmail.com> wrote:
>
>
> 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..
>
Use double quotes instead of single quotes.
--
No one can put you down without your full cooperation.
|