Computing.Net > Forums > Unix > Shell script to get the files by range

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Shell script to get the files by range

Reply to Message Icon

Name: nmadhuhb
Date: June 18, 2009 at 05:32:52 Pacific
OS: Microsoft Windows XP Professional
CPU/Ram: 2.791 GHz / 1013 MB
Subcategory: General
Comment:

Dear All,

Please help in this subject..

my requirement is list the files in directory and out of that list make the different set and each should set contains 10 files and assign to variable and start zipping in background. pick the second set files and same to be repeat the commands parallel.

i used ls -1 *.dbf | head -10 to get the first set. and start the zip.

kindly help me how can i get the next 10 files and assign to second variable.

Appreciated u r help in advance..

Madhu



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: June 18, 2009 at 06:07:23 Pacific
Reply:

ls -1 *.dbf | head -20 | tail -10


0

Response Number 2
Name: nmadhuhb
Date: June 18, 2009 at 06:27:48 Pacific
Reply:

Thanks to all i got sollution used split command to do that.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Shell script to get the files by range

script to get the files created on recent sat www.computing.net/answers/unix/script-to-get-the-files-created-on-recent-sat/8422.html

Shell script to read a file and pro www.computing.net/answers/unix/shell-script-to-read-a-file-and-pro/4304.html

shell script to find & get the specific file www.computing.net/answers/unix/shell-script-to-find-get-the-specific-file/8415.html