[Gllug] Perl scripting challenge
Alexandre de Abreu
alexandre.abreu at gmail.com
Wed Oct 4 15:11:40 UTC 2006
Simon,
Write your own SHELL script, keep in mind:
find /home -iname "foo.txt"
;-)
Sheers
Alexandre
On 04/10/06, Simon Morris <simon.morris at cmtww.com> wrote:
> Hello,
>
> A quick plea/challenge to those of you who are Perl minded.
>
> I need a script that searches a file system looking for files that are
> named like so:
>
> foo.txt
> Foo.txt
> FOO.txt
> foO.tXt
>
> and so on in the same directory. Apparently someone thought that this
> would be a good idea to do!
>
> The script just needs to report the duplicated instances rather than
> actually do anything to the file and I'd like to be able to call it like
> this:
>
> ./magic_script.pl /home
>
> to run the script against the contents of the /home directory.
>
> Thanks
>
> ~sm
>
> --
> Gllug mailing list - Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>
--
Alexandre de Abreu
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list