LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2015, 02:18 AM   #1
w2vijay
LQ Newbie
 
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
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
 
Old 05-18-2015, 11:39 AM   #2
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 840

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
^@ 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?
 
1 members found this post helpful.
Old 05-19-2015, 12:30 PM   #3
w2vijay
LQ Newbie
 
Registered: May 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy contents of a text file into another file at a specific location andrew777 Linux - General 3 08-04-2013 02:48 PM
[SOLVED] How can remove this weird chars from my text file? sopier Programming 4 12-21-2011 06:15 AM
Remove lines in a text file based on another text file asiandude Programming 10 01-29-2009 10:59 AM
German umlaute (special chars) in file system steltner Linux - General 5 10-27-2003 02:07 PM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration