LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remove chars ^@ from text file in linux system location (https://www.linuxquestions.org/questions/linux-newbie-8/remove-chars-%5E%40-from-text-file-in-linux-system-location-4175542888/)

w2vijay 05-18-2015 02:18 AM

Remove chars ^@ from text file in linux system location
 
Hello Freinds,

This is Vijay. I am new this forum and current skills are oracle ERP. My report is generating a text file in linux system location
like /u02/positivepay/p1.txt

The file p1.txt when generated in window system it is seen as below.
003664831509O0000005005000000564300063017 Universal Incorporated
003664831509O0000005009000000297000063017 Universal Incorporated
003664831509O0000018012000001600000061517 Johnson Painting Specialists

When generated in linux system chars "^@" are seen before each letter from VI editor.
^@0^@03664831509O0000005005000000564300063017 Universal Incorporated
^@0^@0^@3^@6^@64831509O0000005009000000297000063017 Universal Incorporated
003664831509O0000018012000001600000061517 Johnson Painting Specialists

how to remove these chars and any special chars from the generated file


Thanks,
Vijay
Phoenix, Arizona

millgates 05-18-2015 11:39 AM

^@ represents a null byte in caret notation. It seems your text file contains zero bytes. What is the encoding of the file and how did you generate it?

w2vijay 05-19-2015 12:30 PM

Remove chars ^@ from text file in linux system location
 
Thanks for the reply Millgates,

The issue is resolved. There is setup issue after correcting that. File generation is good.

Thanks,
Vijay


All times are GMT -5. The time now is 01:29 AM.