Skip to content

Instantly share code, notes, and snippets.

@dereksz
Created August 28, 2021 04:09
Show Gist options
  • Save dereksz/de731f716bb4ab5fdddf776407531c7c to your computer and use it in GitHub Desktop.
Save dereksz/de731f716bb4ab5fdddf776407531c7c to your computer and use it in GitHub Desktop.
Useful Commands for Tidying up my File System
# rmlint
# Pre-run to generate checksumms & attach in extended attributes
rmlint --xattr --progress <some dirs> -- <master dir>
# Renaming image files dith date rather than DSC...
find -iname 'DSC*.jpg' -execdir renrot --mtime --name-template="%Y-%m-%d@%H'%M'%S" -- "{}" \+
# Need to use `-execdir`r `renrot` will move all files to current folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment