Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Batch Rename Every File in a Directory with zsh

    Renaming every file in a directory with zsh is a common scenario when you're working with a series of related files. Using zsh's "for" loop, you can access the name of every file. Then using zsh's string replacement syntax of ${name/replace/with) you can adjust the file names.