View Single Post

  #1 (permalink)  
Old 06-05-2008, 08:30 PM
Mats Mats is offline
Junior Member
User
 
Join Date: Jun 2008
My distro: Debian
Posts: 3
Rep Power: 0
Mats is on a distinguished road
Default Save every fifth file

Hi !
Never done any scripting in Linux , so here is my problem.

I need to have a script that saves every fifth file in a directory, but deletes the other ones.

A bonus would be if the calling of the script would 'set' the value of which files that I want to save (fifth , tenth , second ......)

Sounds like an easy one for you here
Reply With Quote