[Gllug] Finding files with names that differ by case
Jon Dye
jon at pecorous.co.uk
Thu Sep 20 15:06:55 UTC 2007
- Tethys wrote:
> On 9/20/07, Anthony Newman <anthony.newman at ossified.net> wrote:
>
>
>> spitroast:~ $ find /usr/include -type f | perl -pe 's/(.*)/\U$1/g;' |
>
> Sheesh. Why use perl for something as trivial as uppercasing? Kids
> these days! See tr(1) or sed(1).
OK, what I *actually* did was:
find . -type f | sed -e 's/\(.*\)/\U\1/g' | sort | uniq -d
I didn't think of tr though, must remember next time.
JD
--
"I wanna play sexytunes... "
- Eddie Izzard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070920/361fca1a/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list