Discussion: how is it done(sed)
Afficher un message
Vieux 23/08/2006, 06h17   #2
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how is it done(sed)

On 22 Aug 2006 21:27:00 -0700, JyotiC
<jyoti.chhabra@gmail.com> wrote:
> hi
> i want
> configdirs=`echo " ${configdirs} " | sed -e "s/ $1 / /"`
> to be appended to the file configure but $1 sld be replaced by the
> command line argument supplied to shell script
>
> hv tried out commands but $1 is not being replaced
> the one i tried is
> sed -i -e '$a\configdirs=`echo " ${configdirs} " | sed -e "s/ $1 / /"`'
> configure
>
> what should be done to write the value of $1
> thanx
> Jyoti
>

sed -i -e '$a\configdirs=`echo " ${configdirs} " | sed -e "s/ '$1' / /"`'


--
<Mercury> Knghtbrd: Hey, perl has the power grace and elegance of a sledge
hammer. (=:]
<|Rain|> certainly the grace and elegance, anyway
  Réponse avec citation
 
Page generated in 0,04864 seconds with 9 queries