Skip to content

Instantly share code, notes, and snippets.

@martinsotirov
Last active May 25, 2021 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinsotirov/c892e8b1ae51f97ba5ee76609a2516ad to your computer and use it in GitHub Desktop.
Save martinsotirov/c892e8b1ae51f97ba5ee76609a2516ad to your computer and use it in GitHub Desktop.
Bash Helpers
// batch-change file extension of multiple files
// change mv to git mv to retain git history
find . -name "*.css" -exec bash -c 'mv "$1" "${1%.css}".scss' - '{}' \;
// get summed file size of all files from type
find . -name "*.css" | xargs du -sch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment