Help needed to combine files to excel sheet


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help needed to combine files to excel sheet
# 1  
Old 03-29-2008
Help needed to combine files to excel sheet

Hi,

I have several hundreds of text files which I would like to combine them onto excel sheet. Does anyone know how to combine them into different excel sheet in one workbook using Bash script?


Please advise. THanks.

I forgot to mention my file is something like below:-

A B C
0.3 0.4 0.5
01 0.2 0.2
........................
..........................

The file name would be textQ.txt

There are other similar file name such as textP.txt, textO.txt...etc

Last edited by ahjiefreak; 03-29-2008 at 12:23 PM.. Reason: Missing information
# 2  
Old 03-29-2008
Anyone could help on this?

Thanks.
# 3  
Old 03-30-2008
Your requirements are pretty vague. man cat

What kinds of files? Why would you want to do such a wicked thing?
# 4  
Old 03-30-2008
Hi,

I checked wiht man cat and it doesnt provide close clue to this. I am actually generated alot of text files and would like to do better comparison among these text files efficiently. And there are thousands of them; which is why I need to find a solution to automate them to worksheets in excel.

Please advise.
Thanks.
# 5  
Old 03-30-2008
I would not attempt any text analysis in Excel, but your call.

If you cat them together, you get one whopping big file. Importing that into Excel is probably challenging but see if you can get it to accept the notion that there simply are no delimiters and it should import one cell per line.

The result is going to be hopeless, but without more details about your plan, that's the best I can offer.
# 6  
Old 03-30-2008
Sorry, didn't notice you had added more information to the original question.

I don't think there is a standard text format which Excel would know to import into different sheets (a Unix forum is not the best place to learn about the features of Excel anyway). Your best bet is to automate this from the Excel side, which is probably painful too, but that seems to be your destiny.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Format Excel sheet

Hi, I want to format Excel sheet through Unix script. Format would mean bolding the data in the cell, adding clor to it etc. Please help me if it is possible through Unix scripting? Thanks, Durga (2 Replies)
Discussion started by: Durga Prasad NK
2 Replies

3. Shell Programming and Scripting

Perl : to get all the hyperlinks from the xlsx sheet(hyperlinks not visible in excel sheet directly)

Hi folks, I have a requirement in perl to print all the hyperlink from the spreadsheet(xlsx). Spreadsheet contains few lines of hyperlink data (pic attached). P.S. Hyperlink is behind the data and not visible in excel sheet directly. Now using perl script I need to copy the hyperlinks in... (3 Replies)
Discussion started by: scriptscript
3 Replies

4. Shell Programming and Scripting

Attaching two text files in two different sheet in same excel

Hi, My requirement is to get attach two different text file contents to two different sheets in same excelsheet. Also, is there any way we can name the tabs as desired ? Kindly assist. (2 Replies)
Discussion started by: sanjaydubey2006
2 Replies

5. Shell Programming and Scripting

Pdf to excel sheet??

Hi everyone, I want a shellscript code that takes an pdf as input and returns the data in the pdf into an excel sheet... Thanks, C10 (3 Replies)
Discussion started by: Carlton
3 Replies

6. Shell Programming and Scripting

Excel sheet to be created from unix.

Hi Guys, I like to create a excel sheet with four tabs. Is it possible to create it. Acutually i want to apply formulas in fourth tab which uses the three different tabs. Is it possible to create such a script? Thanks & regards, Magesh (3 Replies)
Discussion started by: mac4rfree
3 Replies

7. Solaris

Excel sheet

Hello, I have an information of about 100 odd file names which i have in my server. I need to attach this information in an excel sheet and sent to the concerned team. I use uuencode for attaching a text file. But how will i have all the information in attachment. Please assist. Is there... (1 Reply)
Discussion started by: venkidhadha
1 Replies

8. Shell Programming and Scripting

combine 3 excel files using shell.

Is there any way to combine 3 excel files into one comma separated file, after removing the header row from all the three files. Is this possible? I have looked in FAQ and I did not find anything. Appreciate any suggestions or links to resources. Radhika. (11 Replies)
Discussion started by: radhika
11 Replies

9. UNIX for Advanced & Expert Users

Exporting files from unix to Excel sheet

How can we export a file in unix with certain number of columns to an excel sheet. It's very useful in time saving...... (3 Replies)
Discussion started by: bishweshwar
3 Replies

10. HP-UX

Creating Excel Sheet in Hp-UX

Dear Members, How do I create an eqvivalant of Excel sheet in Hp-UX. Is there any application like the Microsoft Excel on HP-UX. How do I invoke it. Regards, PrasadKVS (5 Replies)
Discussion started by: KVSPRASAD
5 Replies
Login or Register to Ask a Question