@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> Hi. How can I use variable subs inside a sed statment. For example, I have: for i in *.dat; do cat template.m | sed -e 's/XXXX/${i%%.*}/g' > out.m; done , but the subs. of $i is not working
<1> are you trying to use template.m as a list of substitutions?



<1> later, i'm out of here
<2> tecnico: echo "$PATH"; echo '$PATH'
<3> how can i remove the last two zereos in a number with sed command?+
<4> snikker: last 2 zeros that can be anywhere in the number or at the end of the number?
<3> gnubien: at the end of the number
<4> maybe easier with bash builtins
<3> gnubien: ex: 5600000 and i want remove only the last two zeros...
<3> gnubien: it's not possible with sed only?
<4> snikker: echo "012034500" |sed 's/00$//' #0120345
<3> gnubien: great, thanks alot!!!



<4> snikker http://www.student.northpark.edu/pemente/sed/sed1line.txt AND sed.sf.net
<3> gnubien: thanks also for this link :)
<3> gnubien: it's a good point for start to learn sed
<4> snikker: yes, http://www.student.northpark.edu/pemente/sed/ has some sedfaq's too, good read
<3> gnubien: good... thanks :)
<4> snikker: have fun ;)
<3> :)
<3> bye
<5> hi all...


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #sed
or
Go to some related logs:

bash unknown expression primary
christhemonkey
gnome-xgl-switch
goldchlager
#linux
xorg-x11-devel package and fedora core 5
mirrorselect hangs
libglade-2.0 kubuntu
coreymerlin
vmysql: can't read settings from



Home  |  disclaimer  |  contact  |  submit quotes