![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Move files | yshahiac | UNIX for Dummies Questions & Answers | 3 | 02-13-2009 09:35 AM |
| move old files | tjay83 | Shell Programming and Scripting | 26 | 08-15-2008 11:58 AM |
| how to move files | monicasgupta | Shell Programming and Scripting | 1 | 03-14-2008 04:53 PM |
| How to move all files except one? | Kim Walisch | Shell Programming and Scripting | 4 | 11-02-2007 05:00 PM |
| move files | ust | Shell Programming and Scripting | 5 | 07-04-2005 03:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi Everyone!!!
Is there any command to move/copy set of files in a specific range. Eg : I have 800 text files in a directory A1 ... A800 I would like to copy only files in range A40 ... A250. I can acheive this using a "for" loop , but I guess there could be some command or Identifier ( with sed/grep/cp) which I can use to do this. Can somebody help !!! Regards JR |
|
||||
|
I Use ksh , I am able to acheive the desired output using a simple for loop.
for (( i = 40; i <= 250; i++ )) ; do ; cp A$i /var/tmp ; done However my Mind wants some command (like sed..) to give the output. Im sure there could be some command which can replace the above for loop. Thanks to all the gurus who responded !! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|