For example: <99> <B0>
:%s/\%x99//g
:%s/\%xB0//g
Switch to hex mode
Open a file in vim, hit escape and type:
:%!xxd
to exit from hex mode
hit escape again and type:
:%!xxd -r
Search Hex using vim
\%xff or [\xff]
Search 44
\%x34\%x34 or [\x34][\x34]
- LF: Multics, Unix and Unix-like systems (GNU/Linux, Mac OS X, FreeBSD, AIX, Xenix, etc.), BeOS, Amiga, RISC OS and others.
- CR+LF: Microsoft Windows, DEC TOPS-10, RT-11 and most other early non-Unix and non-IBM OSes, CP/M, MP/M, DOS (MS-DOS, PC-DOS, etc.), Atari TOS, OS/2, Symbian OS, Palm OS
CR: Carriage Return, U+000D
Remove all using vim
ReplyDelete:%s/\%xB0//g