The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to convert a single column into several rows and columns? ashton_smith UNIX for Dummies Questions & Answers 5 05-24-2008 01:44 PM
Compare 2 files for a single column and output differences samit_9999 UNIX for Dummies Questions & Answers 1 04-23-2008 09:02 AM
Cutting the first 8 chars of a 2nd column cassj UNIX for Dummies Questions & Answers 9 03-28-2008 08:22 AM
Single column to multiple columns in awk astroDave Shell Programming and Scripting 2 03-27-2008 07:00 PM
single column to multiple columns agibbs UNIX for Dummies Questions & Answers 7 12-05-2007 07:04 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-09-2008
Registered User
 

Join Date: Jan 2008
Posts: 4
Need help recurrently cutting single column file

Hi there !
I have file with single column. I want to cut that column at fixed number of rows each time and paste in another file, in a way that in new file, the each cutting appear as separate columns.

I mean cutting file with one column of 10000 rows, with 100 rows each time, and in new file to get 100 columns each with 100 columns.

Help with suitable unix command for doing this is required.
Thanks in advance..

Last edited by jacks; 02-09-2008 at 08:42 AM. Reason: correction
Reply With Quote
Forum Sponsor
  #2  
Old 02-09-2008
Registered User
 

Join Date: Sep 2006
Posts: 1,580
try man split
Reply With Quote
  #3  
Old 02-09-2008
Registered User
 

Join Date: Jan 2008
Posts: 4
Quote:
Originally Posted by ghostdog74 View Post
try man split
I think that will split the column in a source file, but I do not know how to append that section each time in one file as new column.
I mean ..1 column of 100 rows will be appended each time in a destination file as new column.
Reply With Quote
  #4  
Old 02-09-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
I am not too sure what you want here, but maybe the paste command is what you're looking for.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0