batch conversion of files to lower case
From: Nikolas Britton (freebsd_at_nbritton.org)
Date: 03/25/05
- Previous message: Ann Lee: "Boot Error and stop at : plip0:<PLIP network interface> on ppbus0 -> FreeBSD v4.8 i386"
- Next in thread: Giorgos Keramidas: "Re: batch conversion of files to lower case"
- Reply: Giorgos Keramidas: "Re: batch conversion of files to lower case"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Mar 2005 03:07:21 -0600 To: "Freebsd-Newbies@Freebsd. Org" <freebsd-newbies@freebsd.org>
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
_______________________________________________
freebsd-newbies@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"
- Previous message: Ann Lee: "Boot Error and stop at : plip0:<PLIP network interface> on ppbus0 -> FreeBSD v4.8 i386"
- Next in thread: Giorgos Keramidas: "Re: batch conversion of files to lower case"
- Reply: Giorgos Keramidas: "Re: batch conversion of files to lower case"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|