Skip to content

Instantly share code, notes, and snippets.

View metalox's full-sized avatar

Benedick Miller metalox

View GitHub Profile
@metalox
metalox / rename.py
Created July 15, 2018 18:42 — forked from igniteflow/rename.py
Python script to rename files in directory, transforming spaces to hyphens and the chars to lowercase
import os
"""
Renames the filenames within the same directory to be Unix friendly
(1) Changes spaces to hyphens
(2) Makes lowercase (not a Unix requirement, just looks better ;)
Usage:
python rename.py
"""