From: johnd@sco.COM (John DuBois) Subject: Re: grep usage failure Date: 29 Mar 2001 04:33:58 GMT References: <6Rnw6.firstname.lastname@example.org>
<VApw6.email@example.com> In article <VApw6.firstname.lastname@example.org>, Ronald J Marchand <email@example.com> wrote: +What I am trying to do is embed a typeable string +between two non printable characters. In this case, hex 093109. How can I +set variable b=hex 09 from the keyboard and in a script???
If you're using 5.0.6, you have a grep that understands characters encoded in octal: $ grep '\00111\0011' /usr/include/sys/errno.h ^^^^^ ^^^^^ octal encoding of tab #define EPERM 1 /* Not owner */ For this particular problem, you might take a look at ftp://ftp.armory.com./pub/scobins/errno $ errno 1 EPERM (1): Operation not permitted $ errno eperm EPERM (1): Operation not permitted $ errno perm EPERM (1): Operation not permitted John -- John DuBois firstname.lastname@example.org KC6QKZ/AE I wish to God these calculations had been executed by steam. - Charles Babbage
Got something to add? Send me email.
(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version
Increase ad revenue 50-250% with Ezoic