/Filenamefix

Replaces spaces in filenames in a directory with underscores ('_'). Clusters of underscores are replaced with 1 such.

Primary LanguageCGNU General Public License v2.0GPL-2.0

Filenamefix

What it's for

The object is to operate in a directory chosen by the user and alter all file names in that dir to replace spaces in the names with underscores. Any such names that have clusters of underscores will have that cluster replaced by a single underscore.

To use it

  • cd into the dir of interest

  • filenamefix .

To build it

  1. cd into the dir where you cloned it.

  2. ./build.sh

  3. sudo cp filenamefix /usr/local/bin

Notes

This is just a quick and dirty fixer up for insane file names.

It should build on any Linux system but I am unsure of any thing else out there.