So, you get handed a CD full of files that need to be made available to the InterWeb, you look inside and they’re all called things like:
...2006-04-25 17:02 What I Did For Summer 2005.pdf
So you want to rename these fifteen thousand PDFs to something a_little_more_url_friendly. Why not try rename with a little regular expression?
rename 's/ /_/' *.pdf
Try man rename for a few more ideas, the version of gentoo I tried it on didn’t have a very nice example of rename but Debian Sarge’s version is shiny.
«0 CommentsApril 25, MMVI»
You've arrived at the homepage of Stephen Stewart. The archive is available here for those who want it. This site is happily hosted by Dreamhost. Click for more?
More!? OK then, but I can't help feeling that this will be a disappointment to you.
I work as a web designer in Belfast, and I live by the sea in a shoe. You can see me here, doing my livejournal pose as idoru called it. If you need to you can email me at carisenda -at- gmail -dot- com.