[HPADM] SUMMARY scripting help with sed

From: Julius Szelagiewicz (julius@turtle.com)
Date: Mon Jun 17 2002 - 08:59:11 EDT


Dear Admins,
        the simple answer pointed to me by many was to replace single
quotes with double quotes. thank you all, julius

original problem:
> 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