Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 03:07:21 -0600
From:      Nikolas Britton <freebsd@nbritton.org>
To:        "Freebsd-Newbies@Freebsd. Org" <freebsd-newbies@freebsd.org>
Subject:   batch conversion of files to lower case
Message-ID:  <4243D4C9.4040403@nbritton.org>

next in thread | raw e-mail | index | archive | help

Posting this here so I can find it next time I need. Converts files in a 
directory to lower-case, change "*.TTF" to whatever you want to find / 
change:

find ./ -name "*.TTF" -exec perl -e 'rename($_, lc) || warn "$_: $!\n" 
for @ARGV' {} \;

Alternatively you can use "find ./ -type f" to change ALL files in the 
current working directory.

Adapted from Robin's post on this page: 
http://perlmonks.thepen.com/131861.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4243D4C9.4040403>