Re: SED question RESOLVED

1999-10-22 Thread Greg Wooledge
Andrew Hately ([EMAIL PROTECTED]) wrote:

 Back quotes can't be nested, while $( ) does the same job and can be nested

Actually, you can nest backquotes as long as you \-escape them.  $( ) is
great, but if you're ever going to use a traditional Bourne shell, you
won't be able to use it -- so make sure you understand the backquotes too.

-- 
Greg Wooledge| Truth belongs to everybody.
[EMAIL PROTECTED] |   Red Hot Chili Peppers,
http://www.kellnet.com/wooledge/ |


pgp6N3Q9rn0we.pgp
Description: PGP signature


Re: SED question RESOLVED

1999-10-21 Thread Ben Lutgens
On Thu, Oct 21, 1999 at 09:53:26AM +0200, Andrew Hately wrote:
 What do you want in the variable? Multiple lines?
 Did you try
 set foo=$( grep florida roam.db | sed -e s/^.*\? //g )
 Whats the greater context?
 Andrew
 
I finally got it with
export GREP_RESULT=`grep $LOCATION $HOME/roam.db | sed -e s/^.*\? //g`
I had to use the back quotes``
thanx
 


Re: SED question RESOLVED

1999-10-21 Thread Andrew Hately
Ben Lutgens wrote:
 
 I had to use the back quotes``

Back quotes can't be nested, while $( ) does the same job and can be nested


-- 
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=45690