LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] substituting shell variables with sed

[ILUG] substituting shell variables with sed

Conor Daly conor.daly at oceanfree.net
Sun Mar 25 19:24:00 IST 2001


On Sun, Mar 25, 2001 at 02:09:52AM +0000 or so it is rumoured hereabouts, 
Paul J Collins thought:
> >>>>> "CD" == Conor Daly <conor.daly at oceanfree.net> writes:
> 
>     CD> cat ./dprint | sed -e 's at mpage@\$PATH_MPAGE@' > dprint.out
> 
>     CD> but grep -i mpage dprint.out gives the following:
> 
>     CD> $PATH_MPAGE -$PAGES_UP -a -X -m10l0t50b40r -r -j 1%2 -P$PRINTER $FILE
>     CD> $PATH_MPAGE -$PAGES_UP -a -X -m20l-10t50b40r -j 2%2 -P$PRINTER $FILE
> 
> Single quotes prevent interpolation of shell variables.  Try double quotes.
 
Doh!  Should have spotted that!  Thanks!
-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
  7:37pm  up 26 days,  5:12,  0 users,  load average: 0.00, 0.00, 0.00

Hobbiton.cod.ie
  6:47pm  up 26 days,  3:57,  1 user,  load average: 0.03, 0.03, 0.00




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell