Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Zip only files, not directory hierarchy.

by linuxer (Curate)
on May 14, 2014 at 18:39 UTC ( [id://1086070]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub compressTxtFiles
        {
    ...
            zip [ <$dir/*.txt> ] => $zipfile,
                FilterName => sub { s[^$dir/][] } ;  
        }
    
  2. or download this
    #! /usr/bin/env perl
    use strict;
    ...
    # files in zip (according to 'unzip -l')
    FOO.dat
    BAR.dat
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1086070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-19 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found