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 ^@ may be an editor that can show ASCII as dec or hex. thanks
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080417/a0685530/attachment-0001.sig>
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-0001.html>
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 ^@ > > may be an editor that can show ASCII as dec or hex.Is 'file' able to identify it? It may be a unicode RTF document, or an image file like TIF. -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.