combine 3 excel files using shell.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting combine 3 excel files using shell.
# 1  
Old 06-10-2005
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.
# 2  
Old 06-10-2005
I am getting concerned now, so has no body done this type of thing before. Aren't there any resources to do this type of thing. any pointers is greatly appreciated.
# 3  
Old 06-10-2005
Excel spreadsheets are a proprietary file format. So you can't just concatenate them together. You should load excel, select/copy the cells you want into one of the other spread sheets.

However, if you exported to a comma seperated format (which has nothing to do with excel now) then you could just:

cat file1 file2 file3 > file4

which would make one big file (called file4) containing all the data from file1/2/3.
# 4  
Old 06-10-2005
Issue is:
I could do it manually by loading excel and deleting the header row and copying the cells into the other excel spreadsheet.

But, requirement is to automate the whole process of removing the header column in all three files, combine them into one file, store them as comma or tab delimited text file, so I could run my process which reformats the data.
# 5  
Old 06-10-2005
Quote:
Originally Posted by radhika
Issue is:
I could do it manually by loading excel and deleting the header row and copying the cells into the other excel spreadsheet.

But, requirement is to automate the whole process of removing the header column in all three files, combine them into one file, store them as comma or tab delimited text file, so I could run my process which reformats the data.

Doesn't Excel have a builtin language just for this sort of thing? I belive its called VBA, http://www.excel-vba.com/

try that.
# 6  
Old 06-10-2005
I don't know. I have to research that route also.
# 7  
Old 06-10-2005
Since you are ready to do the internal processing of delimiters et al.,

on Linux, you could use open office and save the .xls as as .csv or .txt.

Then cat all the 3 files into a 1 file and then do the processing.


My 2 cents,

Vino
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Korn shell Script to combine Two files in one

Hello All , I am new to this Forum, I am trying to write a script to combine two data files with 1 column in common and others columns are different . File1 Apple 29 tomatao 4 grapes 25 File2 Apple fruit tomatao veg grapes fruit other (3 Replies)
Discussion started by: gagan0119
3 Replies

2. Shell Programming and Scripting

Combine shell files

I am hoping the attached shell file is at least somewhat close to this. Combining two shell file into one, where depending on the user input of"y" or "n" different commands are run. Thank you :). So first he user is asked for an ID to match, once the id is entered a script is run that uses... (4 Replies)
Discussion started by: cmccabe
4 Replies

3. Shell Programming and Scripting

Combine shell files

The script below is an attempt to combine 3 shells into 1. The first part: match.sh prompts the user for an id of a patient and runs a match script based on the response of "y" or "n". After completing the user is asked if there are additional patients, and based on "y" or "n" a certain action... (2 Replies)
Discussion started by: cmccabe
2 Replies

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

5. Shell Programming and Scripting

How to merge some files with diffrent sizes into one excel file using shell?

Hii I have these files , and I want to merge them in an excel file each file have two columns file1 title1 1 1 2 2 3 3 file2 title2 5 5 6 6 7 7 8 8 9 9 (10 Replies)
Discussion started by: maryre89
10 Replies

6. UNIX for Dummies Questions & Answers

Combine two files using shell script

I need to combine two files based on the content in first column and combine it into one file . For example : file1: A 10 B 20 C 30 D 40 File2: B 200 E 500 A 100 D 400 Need the output in this format: file 3 : column 1 Column 2 Column 3 A 10 100 B 20 ... (4 Replies)
Discussion started by: tsm2011
4 Replies

7. Shell Programming and Scripting

how to combine two files into one file using shell scrip

eg. file 1 has: 4 0 8628380 653253 0 0 0 0 0 0 2 0 8626407 655222 0 0 0 0 0 0 4 0 8633729 647892 0 0 0 0 0 0 5 0 8646253 635367 0 0 0 0 0 0 file 2 has: 4798 48717 11554 5408 56487 14359 6010 58415 15220 5541 41044... (2 Replies)
Discussion started by: netbanker
2 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. Shell Programming and Scripting

How to combine different Excel sheets into a single work book using UNIX

Hi All, I have 4 excel files and i want to combine these 4 files into a single workbook .. my constraints is each work sheet should go to a seperate sheet or tab with sheet name .. my final workbook should have 4 tabs(sheets) each for one. Thanks in Advance.. (3 Replies)
Discussion started by: jagadish99
3 Replies

10. Shell Programming and Scripting

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 ... (5 Replies)
Discussion started by: ahjiefreak
5 Replies
Login or Register to Ask a Question