Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Grouping files with the same name...

by shoness (Friar)
on Nov 05, 2007 at 13:31 UTC ( #649015=note: print w/replies, xml ) Need Help??


in reply to Grouping files with the same name...

Not a perl answer, but it's simpler with a shell script...
#!/bin/bash for f in customer*.xml do /usr/bin/zip ${f%xml}zip ${f} ${f%xml}pdf ${f%xml}xls; done

Replies are listed 'Best First'.
Re^2: Grouping files with the same name...
by A200560 (Novice) on Nov 05, 2007 at 13:58 UTC
    thanks to everybody, very useful tips.
      ...but my platform is windows, how the grep?
        Start with the example ikegami gave.

        (You'll need to opendir $dh first) fixed.

        grep is not a unix command but a built-in Perl function.

        -David

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2020-10-26 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (253 votes). Check out past polls.

    Notices?