Blog. July 2012

  • Renaming files in multiple folders in Linux

    One of the reasons I like Linux is that it makes batch editing of files much easier. Where once I would have had to write a Python script to edit multiple files, now I can (after much Googling) write a simple(ish) command in the terminal to do the same. One example is renaming files.

    For some work I'm doing, I realised that I'd given a parameter a name that was different from previously, which resulted in thousands of text files with the incorrect name. Which seemed like a good opportunity to learn how to use the Linux rename command.