Thread: sed and hex
View Single Post
Old 11th July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
Join Date: May 2008
Location: USofA
Posts: 1,546

Well, usually I wouldn't mention it but since it comes pre installed last I looked, you might always try Perl instead of having to install the GNU Stream EDitor.

Terry@dixie$ echo 'gratefull' | perl -pe 's/gratefull/grate\x2dfull/'      4:54
Terry@dixie$                                                               4:55
Which I assume is what your trying to do but upon document.txt instead of stdin with sed.
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote