Skip to content

Instantly share code, notes, and snippets.

@vinaysshenoy
Last active May 2, 2024 06:08
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 vinaysshenoy/4c78c82471fbde536b4bf6e2cea0c879 to your computer and use it in GitHub Desktop.
Save vinaysshenoy/4c78c82471fbde536b4bf6e2cea0c879 to your computer and use it in GitHub Desktop.
Useful macos shell commands
# Find files matching a pattern and then copy to directory
find . -maxdepth 1 -type f -iname "*s.bmp" | xargs -I _ cp _ ./S
# Find files of extension and delete
find . -type f -iname "*.blend" -exec rm {} \;
# Check if repository exists (0: exists)
git -C ./qweebi-unity rev-parse 2>/dev/null; echo $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment