command substitution

Sean Sheridan Coleman X5672 coleman at cam.nist.gov
Thu Nov 8 11:09:48 AEST 1990


I want to write the following independent statements into one
line:

set tmp= `awk '{print $7}' /tmp/process.$$`
set date = `basename $tmp`

$7 is /home/central/coleman/901012.log


I really want to do the following:

set date = `basename `awk '{print $7}' /tmp/process.$$``

Unfortuantly, the second set of Grave accent marks for command
substitution for the basename command will confuse the shell. 
Is there a way to "qoute" these so that those grave accent (`)
will be passed down for another layer command substitution?


Thanks

Sean Coleman
NIST
Boulder, CO

coleman at bldrdoc.gov



More information about the Comp.unix.shell mailing list