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
|