The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




Thread: File Format
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 08-01-2008
prvnrk prvnrk is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 138
Thanks for your replies.

Yes, its being opened in notepad without any problems and then if i copy from notepad and then paste to vi or another editor and then the new file gets normally processed in UNIX. As we need to automate the process, we can not afford this intermediate task.

Please find attached sample file (zipped file - test50.001 has 25 lines) but shows as below:

[root@www]# cat test50.001
PV1|1|E|||||^||||||||||9999^NO PMD|||||||||||||||||||60||||||||0821102053|200829PV1|1|E|||||10359^FRANK RACHEL A||||||||||^|||||||||||||||||||60||||||||08211020PV1|1|E|||||10359^FRANK RACHEL A||||||||||10236^MODESTE KAREN A|||||||||||||||||PR1|16|C4|99282|||||||||||||~07
[root@www]# wc -l test50.001
1 test50.001
[root@www]# file test50.001
test50.001: ASCII text, with CRLF, CR line terminators
[root@www]#


Note: Please directly transfter the attached file to UNIX box and test it (without any COPY/PASTE)

Thanks and Regards,
Attached Files
File Type: zip test50.zip (452 Bytes, 2 views)