June, 2008 archive

Quickly, and efficiently, mass rename files in bash

June 18th, 2008 | How To, Linux, OS X, Ubuntu | 1 comment

Quick tip for everyone who is using Mac OS X, Unix, or anything with bash. If you want to mass rename a bunch of files, there isn’t a simple way of doing it. Either you would have to do it manually1 or you could use this simple line of code.

ls ryan.* | awk ‘{print("mv "$1" [...]