Wordpad file in solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Wordpad file in solaris
# 1  
Old 03-15-2011
Wordpad file in solaris

i have a file which i open in wordpad shows proper formated o/p column wise .. but same file which is txt file when i do cat in solaris shows grabbled o/p is there any way i can see the output same as wordpad or txt pad ? even in solaris ?

Following is the o/o when i do a #cat file.txt | more in soalris

Code:
1|HD5N301|HD5N302|HD5N303|HD5N304|HD5N401|HD5N402|HD5N403|HD5N404|HD5N405|HD5N406|HD5N407|HD6N101|HD6N102|HD6N201|LN1PO101|LN1PO102|LN1PO103|LN1PO104|LN1PO106|LN1PO107|LN1PO108|
LN1PO109|LN1PO110|LN1PO111|LN1MEA01|LN1MEA02|LN1MEA03|LN1MEA04|LN1PID01|LN1PID05|LN1TC201|LN1TC202|LN1TC205|LN1TC206|LN1TD401|LN1TD402|LN1MTX01|LN1MTX02|LN1MTX03|LN3N101|LN3N102
|LN3N103|LN3N104|LN3N201|LN3N301|LN3N302|LN3N303|LN3N304|LN3N401|LN3N402|LN3N403|LN3N404|LN3N405|LN3N406|LN3N407|LN3REF01|LN3REF02|LN3REF03|LN3REF04|LN4PER01|LN4PER02|LN4PER03|L
N4PER04|LN4PER05|LN4PER06|LN4PER07|LN4PER08|LN1SCH01|LN1SCH02|LN1SCH05|LN1SCH06|LN1SCH08|LN1SCH09|LN1SCH12|SUCTT01|SUCTT02|LN5PER02|LN1POC02|LN1PO105|LN1TXI06
00|ENP SURGE |00|          |ZZ|CNTRLCNCPTS    |ZZ|               |110310|1500|<|00502|         |0|P|>|PO|CNTRLCNCPTS    |               |20110310|150028  |         |X |005020
   |850|         |00|BK|501B31434004          |B31434000                     |20110310|                              |  |03|BY |USD|          |   |        |        |PP |0000000
                                                                        |S3 |ABC                                                                      |06 |501
                                                                 |K6 |MARK FOR: STOCK                                                                 |CC|ZZ|EMR2006
                                                            |ZZ|                                                                                |5TH 3RD PROX
                                                |L1 |PO HEADER INSTRUCTIONS TO SUPPLIER           |OTH|                    THANK YOU!!!!!!!!!!!!
      |****************I M P O R T A N T ***************************                   |VN |  Q CORP.                                 |93|501
                                                           |                                                            |                                     |
                                                       |                                                       |                                                       |MENTOR
                     |OH|44060                              |   |SU|                                                            |TE|
                                                     |FX|                                                                                |EM|

# 2  
Old 03-15-2011
What does it look like in windows?

cat -vte is nice for seeing everything.

My first thought was unicode or utf8, but it looks very text-like.
# 3  
Old 03-15-2011
In windows it looks like a column based file with dozens of columns and i did try cat -vte .. but it didn't help :-(
# 4  
Old 03-15-2011
It is probably Solaris not recognizing the return carriages.. If you can, just copy and paste the contents of the wordpad file into a vi session.
# 5  
Old 03-15-2011
cat -vte output to us would show us if there were, say, carriage returns for line feeds. Paste in some windows input and some cat -vte output.
# 6  
Old 03-15-2011
I did try


Code:
1.  saving the file in unicode txt document
2.  copy the file to vi 
3.  using cat -vte

and none helped , the problem is that i have to get the o/p from the file and sort it and then put it into different file but since this file has several dozen columns its not opening properly in vi , cat as it opens in wordpad or txtpad.
# 7  
Old 03-15-2011
you can try doing a dos2unix on your file
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with Solaris file system

Hi, I have not worked on Solaris 10 that much. Need some help with this. I can't seem where the file or how the file systems are mounted. Please see the /etcvfstab below. more vfstab #device device mount FS fsck mount mount #to mount to fsck ... (3 Replies)
Discussion started by: samnyc
3 Replies

2. Solaris

dual boot solaris/solaris zfs file system

Hi, I am running into a some problems creating a dual boot system of 2 solaris instances using ZFS file system and I was wondering if someone can help me out. First some back ground. I have been asked to change the file system of our server from UFS to ZFS. Currently we are using Solaris... (3 Replies)
Discussion started by: estammis
3 Replies

3. Solaris

Solaris :regarding /etc/shadow file

what does the last column in /etc/shadow file indicate?? i read man page,it tells its FLAG..but i am not able to understand exactly why its there :confused: thanks in advance, shekhar (4 Replies)
Discussion started by: shekhar_4_u
4 Replies

4. Shell Programming and Scripting

How to print excel file / csv file in solaris server ?

Hi, I have to print a excel file in solaris server. I am using lexmark printer with post script printer driver . But the problem is when i am using " lp -d <printer name> <somefile name.xls>" command it is not printing correctly. but for pdf file using the same command it printing correctly. ... (2 Replies)
Discussion started by: Sambuddha
2 Replies

5. Solaris

Open .z file on solaris

Hello Admins; Anybody can suggest on how to open ".z" files on solaris. Thanks (16 Replies)
Discussion started by: snchaudhari2
16 Replies

6. Shell Programming and Scripting

Unzipping a file in Solaris - Issue with xls file

Hi, I have an excel file generated by system in windows. I am zipping it, transfering to unix and unzipping there. But i'm getting below output while unzipping. $ /usr/bin/unzip -a 123.zip -d . Archive: 123.zip inflating: ./123/Index.xls When i copy this unzipped xls file to... (0 Replies)
Discussion started by: ajaykumarb
0 Replies

7. UNIX Desktop Questions & Answers

Wordpad or Notepad?

I am new to using UNIX and after uploading a new script to UNIX from Windows using FTP, the script doesn't always work. It seems this depends on the text editor I use and the transfer type. I understand all scripts should be transferred using ASCII, but can you advise which is the best text editor... (12 Replies)
Discussion started by: Heidi.Ebbs
12 Replies
Login or Register to Ask a Question