The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-21-2001
Registered User
 

Join Date: Sep 2001
Location: Johanessburg
Posts: 27
about cut???

Thanks for checking in.

Would it be posible for me to do this.

cat {file-name} |cut -c1-10 > {new-filename}

This can be done.
BUT

Is it Posible when doing something like this...

cat {file-name} |cut -c1-10 >> {samefile-name}

But instead of the information being add below is it posible to add it right next to the first colum.
eg
colum1 colum2
INFORMATION INFORMATION
INFORMATION INFORMATION
INFORMATION INFORMATION
Forum Sponsor
  #2  
Old 09-21-2001
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,612
Send the first stuff to one file, send the second stuff to a second file; then paste them:

cut -c1-10 < inputfile > one
cut -c41-50 < inputfile > two
paste one two > finalfile
  #3  
Old 09-21-2001
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
its kinda funny i was looking for the command paste yesterday but i couldnt remember what it was called.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:32 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