justin423 has asked for the wisdom of the Perl Monks concerning the following question:
is there a script that will zip all files in a drive with a predictable filename, then delete the original?
e.g.
all files end in FILENAME.GxxxxV00 with the 4 X's as numbers.
Is there a little utility that will scan the entire drive for those files and then zip them up with the number retained and the V00 converted to the file extension .zip e.g. FILENAME.Gxxxx.zip and then delete the original file to create space on the drive.
this seems like something that Perl was built for.
e.g.
all files end in FILENAME.GxxxxV00 with the 4 X's as numbers.
Is there a little utility that will scan the entire drive for those files and then zip them up with the number retained and the V00 converted to the file extension .zip e.g. FILENAME.Gxxxx.zip and then delete the original file to create space on the drive.
this seems like something that Perl was built for.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Automatic zip and delete
by AnomalousMonk (Bishop) on Sep 02, 2021 at 19:57 UTC | |
by soonix (Canon) on Sep 03, 2021 at 12:55 UTC | |
by justin423 (Acolyte) on Sep 03, 2021 at 15:05 UTC | |
Re: Automatic zip and delete
by Marshall (Canon) on Sep 06, 2021 at 03:08 UTC | |
by justin423 (Acolyte) on Sep 13, 2021 at 14:33 UTC | |
Re: Automatic zip and delete
by tybalt89 (Prior) on Sep 03, 2021 at 17:41 UTC | |
Re: Automatic zip and delete
by LanX (Sage) on Sep 02, 2021 at 17:41 UTC | |
Re: Automatic zip and delete
by Anonymous Monk on Sep 03, 2021 at 15:44 UTC |
Back to
Seekers of Perl Wisdom