🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1722

command substitution

#1722
From: Sean Sheridan Coleman X5672
Date: Thu, 08 Nov 1990 00:09
27 lines
983 bytes
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@bldrdoc.gov
Technical Details
Message-ID: <5697@alpha.cam.nist.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!cme!cam!coleman

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!cme!cam!coleman
From: coleman@cam.nist.gov (Sean Sheridan Coleman X5672)
Newsgroups: comp.unix.shell
Subject: command substitution
Message-ID: <5697@alpha.cam.nist.gov>
Date: 8 Nov 90 00:09:48 GMT
Organization: National Institute of Standards & Technology, Gaithersburg, MD
Lines: 27