Re: exam txt file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



yes, corruption indeed, but i want to study why the program writes ^@ to this file.

t. hiep


On Thu, Apr 17, 2008 at 05:56:36AM -0700, Hiep Nguyen wrote:
>  hi all, i have centos 5 w/o gui.  i can only have access via ssh.
> 
>  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 ^@

^@ is the nul byte (zero byte).

>  may be an editor that can show ASCII as dec or hex.

xxd, included with vi, can show you the hex dump followed by the ascii
one, while hexedit allows you to edit the file either entering the
hexadecimal value or the ascii one.

Anyway, a text file with \000 is very unusual, maybe it got corrupted?

-- 
lfr
0/0

Attachment: pgpzd3W3vZ6ZY.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux