Skip to content

Instantly share code, notes, and snippets.

View jeremy-jtlo's full-sized avatar

Jeremy jeremy-jtlo

  • 15:57 (UTC -07:00)
View GitHub Profile
@jeremy-jtlo
jeremy-jtlo / rename-files.py
Last active October 23, 2018 00:20
Simple bulk file renamer utility for .bashrc and config.fish
#!/usr/bin/python
# script is for the bulk renaming of files in the CURRENT DIRECTORY.
# Best used when added to $PATH and called in the desired folder.
# input: {string(up to 150 chars)}
# output: All files will look like <string>_[10-99]_[0-9]_[0-9].<file-exentsion>
# If any files follow the current convention, they will be skipped.
import sys
import os
import argparse