![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Require Help for Shell Script | jagnikam | Shell Programming and Scripting | 14 | 02-04-2008 04:04 AM |
| require alternate command for lsof | logic0 | UNIX for Dummies Questions & Answers | 1 | 05-17-2007 12:41 AM |
| Regarding use and require keywords | sweta | Shell Programming and Scripting | 2 | 03-16-2006 08:09 AM |
| Command to require OS info | malaymaru | SUN Solaris | 4 | 05-02-2005 10:07 PM |
| require in first line | ibidris2003 | Shell Programming and Scripting | 2 | 10-21-2003 03:21 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
require help about cut command
hi, im trying to cut the file using cut command in unix . the problem is i want to input the chacter list from another file and then using the postioins specified in this file i want to cut another file.
for eg. cut -c(here i want to use a list being read from a file) listdata(this is the file i want to cut) can anyone help and tell me a suitable soution |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Your requirement is still not clear. Better you exemplify your problem.
|
|
#3
|
||||
|
||||
|
Try..
Code:
$ head file[12] ==> file1 <== 1,3-5 ==> file2 <== abcdefg $ cut -c$(<file1) file2 acde |
||||
| Google The UNIX and Linux Forums |