Woohoo!

Chris Benson chrisb at jesmond.demon.co.uk
Thu Aug 21 09:20:26 CDT 2003


User has a directory full of program files copied from MSWindows.

Some files are UPPERCASE
Some files are lowercase
Some files are MixedCase

How do we find the duplicates easily? And see which is newest?

Tadah!

	perl -le 'print $_ , "\t", scalar localtime((stat)[9])
	foreach sort {lc $a cmp lc $b} <*>'

Sort all the filenames case-insensitively and print with last modified
time.
-- 
Chris Benson



More information about the Tyneside-pm mailing list