Path: 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 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