The UNIX and Linux Forums  


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



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to concatenate 2 files using awk? pdtak Shell Programming and Scripting 2 03-12-2008 01:12 PM
Script to concatenate several files docaia Shell Programming and Scripting 3 02-03-2008 09:07 AM
Concatenate text of two files in UNIX. Uniq UNIX for Advanced & Expert Users 1 01-19-2007 07:53 AM
Dvd files concatenate error: Not enough space maag SUN Solaris 3 05-06-2006 11:39 PM
How to concatenate all files. s80bob UNIX for Dummies Questions & Answers 1 08-22-2005 05:20 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 02-15-2005
praveen.pinto praveen.pinto is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 10
Split n then concatenate files.

I have a file which has 350,000 records.
I want all of these in 1 excel sheet file(around 6 worksheets)
I used the below command to split it.

split -64000 Creditratingsdata.xls credits

Now i am having problems of appending into 1 excel file.
I even went to the extent of trying.

(cat (split -64000 Creditratingsdata.xls credits) >> why.xls)

so that the split file will be appended into why.xls........

ANY IDEAS ONTHE SAME LINES..............!!!!!!!!
  #2 (permalink)  
Old 02-15-2005
thumsup9 thumsup9 is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 97
Quote:
Originally Posted by praveen.pinto

split -64000 Creditratingsdata.xls credits


ANY IDEAS ONTHE SAME LINES..............!!!!!!!!

What are the files split created .And if you are concatenating several files use '>' instead of '>>'
  #3 (permalink)  
Old 02-15-2005
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2004
Location: USA
Posts: 511
what about ....


Code:
rm credits*              # not removing Creditratingsdata.xls
split -64000 Creditratingsdata.xls credits
cat credits* > x.xls

  #4 (permalink)  
Old 02-16-2005
praveen.pinto praveen.pinto is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 10
I tried the below given by u...

cp Creditratings.txt Creditratingsdata.xls
split -64000 Creditratingsdata.xls credits
cat credits* > x.xls

But it doesn add a new worksheet.
only one worksheet is created and
rows from 64001 get filled in that worksheet till 65536.
The remaining data is not loaded.
  #5 (permalink)  
Old 02-16-2005
praveen.pinto praveen.pinto is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 10
Hi thumsup 9.
the files created are......
creditsaa
creditsab
creditsac
creditsad
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0