Link to home
Start Free TrialLog in
Avatar of Bob_Conard
Bob_Conard

asked on

Using Hex values in sed

I am trying to identify a tab value in my sed command.  I have tried \t but that doesn't work.  I was trying \x09 as a hexidecimal search but I found that I must be formatting it incorrectly because no hex value will work.  The format for the find part of my sed command is /\x09/ I hope someone who knows more about sed than I do (probably most of the world's population) can correct my sed expression.  Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob_Conard
Bob_Conard

ASKER

That not only sounded crazy, it looked crazy as I keyed it in.  But it worked!!!
Thanks a lot Kent.
                           Bob
Hi Bob_Conard,

unix -- an acronym for Understood by None In X (ten).

  :~}

Kent
as already said: standard (AT&T, Berkley) sed does not support \t or hex values
use GNU's sed or a literal tab, how to key in literal tabs depend on your shell and its settings
\0x09

:-P
gheist, which sed on which platform understands this?
Read TFM ....
\009 is the one.