[CentOS] exam txt file

Thu Apr 17 14:02:48 UTC 2008
Alan Bartlett <ajb.stxsl at googlemail.com>

On 17/04/2008, Hiep Nguyen <hiep at ee.ucr.edu> wrote:
>
> i have a text file that contains special (unprintable) characters, what
> editor i can use to exam what those character are???
> i use vi, but i don't know what is ^@
> may be an editor that can show ASCII as dec or hex.


How about keeping things simple to start with. Just examine a copy of the
file:

hexdump -C file.txt | less

before attempting to edit/convert/correct it.

Also, how about telling us which process is writing this file (possibly
corruptly)?

Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080417/c64f84ce/attachment-0004.html>