Last active
May 2, 2024 06:08
-
-
Save vinaysshenoy/4c78c82471fbde536b4bf6e2cea0c879 to your computer and use it in GitHub Desktop.
Useful macos shell commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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