>>>>> "henry" == henry  <[EMAIL PROTECTED]> writes:

henry> Dear List : How to replace 0xabcd,0xefgh to 0xab,0xcd,0xef,0xgh
henry> ? (Note: a,b,c... is variable digital resp.)  How can I replace
henry> [0-9][0-9], with 0x[0-9][0-9] ?

I think you want something like:

  sed -e 's/\(0x[0-9a-fA-F][0-9a-fA-F]\)\([0-9a-fA-F][0-9a-fA-F]\)/\1,0x\2/g'

The parentheses \(\) mark out portions of the matched expression; 
\1 is whatever was matched by the first such, \2 by the second and so
on. The trailing `g' says to repeat the substitution on all matches
found, not just the first in the line.

--
Dr Peter Chubb                              [EMAIL PROTECTED]
You are lost in a maze of BitKeeper repositories, all almost the same.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to