Thread: sed and hex
View Single Post
  #2   (View Single Post)  
Old 10th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Is there anything wrong with just '-'? you may have to escape it '\-', but that is easy enough, isn't it?

One sed feature does use 3-digit octal for non-printable characters '\055' for your example - maybe that will work. The shortcut for hex is often (C-style) \0x2d - does that work? Of course, for readability's sake, use '\-' if it works!!!
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote