Excel


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Excel
# 1  
Old 06-21-2011
Excel

I have file called abc.txt at /usr/abc..

Content of file is as below.
Code:
mZ2|uM/KRCNB30103/1|BADR|NLRDC00C/W |                       |201105|I|2
oZ2|iM/KRCNB30103/1|BADR|NLRDC00C/W |                       |201105|I|2
pZ2|qM/KRCNB30103/1|BADR|NLRDC00C/W |                       |201105|I|2
aZ2|zM/KRCNB30103/1|BADR|NLRDC00C/W |                       |201105|I|2
qZ2|gM/KRCNB30103/1|BADR|NLRDC00C/W |                       |201105|I|2

The abc.txt contains huge data..I need to do few manipulation on that file in excel.

I need to copy the contents of this abc.txt to excel.
How is this possible with a simple command..
I mean copying the contect of this txt file and putting it into a excel on the local drive or desktop or anywhere.
# 2  
Old 06-21-2011
Copy the file from your unix system to local windows box. Once done then open it in excel will be enough. in Excel go to Data -> Text to Columns -> Delimited -> and under Other type "|".
# 3  
Old 06-21-2011
rename the file to .csv and make all the pipe | delimter to comma ,
# 4  
Old 06-21-2011
Almost all commercial spreadsheet software is able to read CSV files and convert them to XLS without much trouble.

It's a bit harder if you want to do the conversion using raw tools in a unix system.

I've heard xls2csv from CPAN works great but I've not really tested it myself.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to generate Excel file or to SQL output data to Excel format/tabular format

Hi , i am generating some data by firing sql query with connecting to the database by my solaris box. The below one should be the header line of my excel ,here its coming in separate row. TO_CHAR(C. CURR_EMP_NO ---------- --------------- LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies

2. Shell Programming and Scripting

Summing up the data from different excel sheet into one excel sheet

Hi Folks, Can you please advise for any script in unix such that for example , i have 3 different excel sheet at the location /ppt/gfr/exc so the name s of the excel sheet are 1excel.xslx 2excel.xslx 3excel.xslx now in these 3 different excel sheet there is lot of data for example each... (3 Replies)
Discussion started by: punpun66
3 Replies

3. Shell Programming and Scripting

Perl script to Merge contents of 2 different excel files in a single excel file

All, I have an excel sheet Excel1.xls that has some entries. I have one more excel sheet Excel2.xls that has entries only in those cells which are blank in Excel1.xls These may be in different workbooks. They are totally independent made by 2 different users. I have placed them in a... (1 Reply)
Discussion started by: Anamika08
1 Replies

4. Shell Programming and Scripting

Writing excel file using perl : Excel file formatting changed

I am trying to create a program where user can input data in certain excel cells using user interface on internet....the programming is on perl and server is unix But when i parse data into excel the formatting of sheets is turned to default and all macro coding removed. What to do...Please... (7 Replies)
Discussion started by: mud_born
7 Replies

5. UNIX for Dummies Questions & Answers

Help for Excel

Hello everybody. I am new here and hoping someone is willing to help. I just want to know if anyone can tell me how it would be possible to combine two separate rows in excel while adding certain pieces of information and keeping others the same. Here is what I mean. I want to combine the same... (1 Reply)
Discussion started by: blubiz2
1 Replies

6. Windows & DOS: Issues & Discussions

Excel

Hello, I have received very much needed help in the past from this forum and hope that someone can assist me once more. I am in the military and I am tracking classroom specific training for each one of our units per sailor in that unit. I am attaching the spreadsheet for your review. There are... (5 Replies)
Discussion started by: Maggiepie
5 Replies

7. Windows & DOS: Issues & Discussions

Excel manipulation

I have a .csv file, when i open it in excel sheet the content is getting displayed in scientific notation (E+e.) , now inorder to remove tht i have appended ' (single quote) infront of the number. This is working fine. But when i open in excel the ' single quote is appearing before the number. My... (1 Reply)
Discussion started by: dvrraju
1 Replies

8. Shell Programming and Scripting

PERL: Split Excel Workbook to Indiv Excel files

Hi, I am trying to find a way to read an excel work book with multiple worksheets. And write each worksheet into a new excel file using perl. My environment is Unix. For example: I have an excel workbook TEST.xls and it has Sheet1, Sheet2, Sheet3 worksheets. I would like to create... (2 Replies)
Discussion started by: sandeep78
2 Replies

9. UNIX for Dummies Questions & Answers

Excel help

Folks; I'm writing a shell script to extract some field out of log file to a text file which i can convert/open in Excel sheet. I gave names to the fields like (Editor_name, Owner, etc..) to be in the top of the Excel sheet. When i open the file using Excel sheet i see these filed names fine on... (2 Replies)
Discussion started by: moe2266
2 Replies

10. UNIX for Dummies Questions & Answers

excel

i am currently using a unix environment and will be constantly receiving documents in excel format(.xls) my question is is there any tools that will do auto convertion of data in the excel doc into .txt? ps.. my job are mainly for batch processing. thus it would be great if no manual work is... (2 Replies)
Discussion started by: swakoo
2 Replies
Login or Register to Ask a Question