sed to replace string in hex value

 backslash:

# sed -e 's/\x27\xc2\xa5/\x27\x5c/g' file.txt >file.backslash_modified.txt
~:
# sed -e 's/\xe3\x80\x9c/\xef\xbd\x9e/g' file.txt >file.tild_modified.txtUTF8のhexコードの変更例
\
c2a5
↓
5c~
e3809c
↓
efbd9e 

コメント

人気の投稿