file format for(windows)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers file format for(windows)
# 1  
Old 10-23-2002
file format for(windows)

i have a file formating .txt
QHG101A^@53^@^@^@^@^@^@^@^@53^@^@^@^@^@^@^@^@0^@^@^@^@^@^@^@^@
^@QHG101A-QHG101C^@13^@^@^@^@^@^@^@^@13^@^@^@^@^@^@^@^@0^@^@^@^@^@^@^@^@^@QHG101
C-QHG101A^@49^@^@^@^@^@^@^@^@48^@^@^@^@^@^@^@^@1^@^@^@^@
how can i cut "^@" and replace with correcting character?
# 2  
Old 10-24-2002
Preceding a character with a ^ in a unix convention for displaying control characters. A ^@ is a null. If you want to replace nulls with say, X, you could use:
tr '\000' X < input > output
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multiple input and save in windows format

The below code works great if the user inputs a single value. The sed command applies the NM_ with the user input it is saved to a file. However, if two values are entered the below does not work. Can both values be saved at the same time if they are entered in windows format? Thank you :). ... (6 Replies)
Discussion started by: cmccabe
6 Replies

2. UNIX for Dummies Questions & Answers

Send Email To Windows OS Preserving The Format

I am trying to send an email using mailx and mutt commands with a body inside it. For some reason all the lines in the body are coming as one line, i figured it's not the issue with mailx/mutt but with line feed & carriage returns. So I tried adding carriage returns with below command based on... (13 Replies)
Discussion started by: Ariean
13 Replies

3. Shell Programming and Scripting

Generate and copy files in UNICODE format from Linux to Windows

Hi,We have an interface which extracts data from database tables, spool the records into text files, and copy those files using SFTP to a windows server location. The target system loads these files into its database using some DTS packages in SQL Server. This interface of exporting text files... (13 Replies)
Discussion started by: urjagadeesh
13 Replies

4. Shell Programming and Scripting

Converting windows format file to unix format using script

Hi, I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix. My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies

5. UNIX for Dummies Questions & Answers

To convert multi format file to a readable ascii format

Hi I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source . Can any one suggest a way a logic to convert such... (5 Replies)
Discussion started by: gaur.deepti
5 Replies

6. UNIX for Dummies Questions & Answers

How to format a floppy in unix filesystem from windows

Hi, we have a strange problem. We have to format any floppy disk HD in unix filesystem mode (SCO) but we haven't unix workstations. Are there any software to make this formatting from windows xp pc ? Regards Gianpaolo (1 Reply)
Discussion started by: elektra
1 Replies

7. UNIX for Advanced & Expert Users

format unix hard drive on windows xp

Hello, How is it possible to copy the partition of hard drive that have unix on it (it's a scsi hard drive of an Irix (SGI)), under windows xp - what I did till now is to connect the drive to the my pc (windows xp installed) with a scsi adapter and the program partition magic can't recognize the... (2 Replies)
Discussion started by: moyalt
2 Replies

8. UNIX for Dummies Questions & Answers

Different Format in Unix & Windows

I used the following commands to store the discription of "sed" into a unix file: man sed > sed.txt But, after I download the file "sed.txt" to a Windows XP system, the file can not be displayed correctly. How to change the format of a Unix file to a Windows one? (5 Replies)
Discussion started by: endeavour1985
5 Replies
Login or Register to Ask a Question