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.
Bob_ConardAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kent OlsenDBACommented:
Hi Bob_Conard,

There are different implementations of sed running around.  :)  That said, most of them don't recognize '\t' as TAB.  As crazy as this sounds, retype your sed expression, but literally press the TAB key where you have '\t' in the expression.




Good Luck!
Kent

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob_ConardAuthor Commented:
That not only sounded crazy, it looked crazy as I keyed it in.  But it worked!!!
Thanks a lot Kent.
                           Bob
Kent OlsenDBACommented:
Hi Bob_Conard,

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

  :~}

Kent
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

ahoffmannCommented:
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
gheistCommented:
\0x09

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


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.