[HPADM] scripting help with sed

From: Julius Szelagiewicz (julius@turtle.com)
Date: Sun Jun 16 2002 - 23:17:52 EDT


Dear Admins,
        i am having a senior moment, so please be gentle. i need to pass a
value to sed for replacement, like this:

newvalue=`somecommandoutput`
sed -e 's/oldvalue/$newalue/'|process-further

i need the sed to see the contents of $newvalue, not the "$newvalue"
varbatim. how do i do that? tia, julius

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:14 EDT