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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Bob_Conard,
unix -- an acronym for Understood by None In X (ten).
:~}
Kent
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
use GNU's sed or a literal tab, how to key in literal tabs depend on your shell and its settings
\0x09
:-P
:-P
gheist, which sed on which platform understands this?
Read TFM ....
\009 is the one.
\009 is the one.
ASKER
Thanks a lot Kent.
Bob