Created
September 18, 2017 23:07
-
-
Save tudormunteanu/82c9448f139fd9bffe75babdfc04c39e to your computer and use it in GitHub Desktop.
Remove all RAF that don't have a JPG
This file contains hidden or 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
ls | grep "RAF" | cut -d'.' -f1 | xargs -I {} bash -c 'if [ ! -f {}".JPG" ]; then echo "File {}.RAF has no JPG."; fi' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment