Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created August 15, 2019 20:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregjhogan/eeb8e1ce01a185a796ff5cb5b3a44b6f to your computer and use it in GitHub Desktop.
Save gregjhogan/eeb8e1ce01a185a796ff5cb5b3a44b6f to your computer and use it in GitHub Desktop.
base64 decode file names in directory that have base64 encoded names
find <dir> -type f | xargs -L 1 -I {} basename {} | xargs -L 1 -I {} printf "{}\nCg==" | base64 -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment