Hossein has asked for the wisdom of the Perl Monks concerning the following question:
I have a list of files.
These files have some mutual frases in their name. It varies from dir to dir.
I need to guess what these mutual frases/patterns are in order to remove them.
Example files: hhk_1sss-(hello).txt hhk_2abc-(hello).txt hhk_3xyz-(hello).txt I need the results (new file names) to be: 1sss.txt 2abc.txt 3xyz.txt
Thanks :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to guess mutual frases?
by QM (Parson) on Jul 30, 2013 at 09:20 UTC | |
Re: how to guess mutual frases?
by choroba (Cardinal) on Jul 30, 2013 at 11:38 UTC | |
Re: how to guess mutual frases?
by arkturuz (Curate) on Jul 30, 2013 at 09:00 UTC | |
Re: how to guess mutual (f)phrases?
by kcott (Archbishop) on Jul 31, 2013 at 10:41 UTC |