![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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 |