fiddler42 has asked for the wisdom of the Perl Monks concerning the following question:
I have a list of c. 5,000 files that I need to collapse into the smallest possible list of files with wildcards. For example, say I have some files named:-
...and I need to reduce them to:-abcpwbln08 abcpwbln07 abcpwbnn10 abcpwbnn06 adesicln09 adesicln08 adesicln01 adesicnn05
Any suggestions on how to do this as efficiently as possible in perl? The routine will start off by just reading in the contents of a user-specified unix directory. The names will be very similar to what's referenced above.abcpwbln0* abcpwbnn* adesicln0* adesicnn05
Thanks,
-fiddler42
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Collapsing a list of files...
by kennethk (Abbot) on Sep 16, 2009 at 22:25 UTC | |
by fiddler42 (Beadle) on Sep 17, 2009 at 00:22 UTC | |
by Anonymous Monk on Sep 17, 2009 at 00:35 UTC | |
by graff (Chancellor) on Sep 17, 2009 at 03:53 UTC | |
by kennethk (Abbot) on Sep 17, 2009 at 15:07 UTC | |
|
Re: Collapsing a list of files...
by Anonymous Monk on Sep 16, 2009 at 22:25 UTC | |
by ikegami (Patriarch) on Sep 17, 2009 at 15:21 UTC |