[HPADM] using sed and a hex value substitution

From: Naylor, Jim (Jnaylor@Schnucks.com)
Date: Tue Sep 28 2004 - 12:01:09 EDT


Hello All,
A co-worker asked me why the following command does not work on HP-UX but
works on Linux.

A file called AAA has this one line in it:

123456

Command:

sed s/1/'\x32'/ AAA

The '\x32' is the hex value
The result:

x3223456

Any ideas would be greatly appreciated.

Thanks,
Jim Naylor
Unix Systems Administrator
Schnuck Markets, Inc.
* Direct: (314) 994-4784
*)) Cell: (314) 691-0186
* Fax : (314) 994-4684
* jnaylor@schnucks.com

--
             ---> 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:43 EDT