Discussion: how is it done(sed)
Afficher un message
Vieux 23/08/2006, 05h27   #1
JyotiC
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how is it done(sed)

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

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