Created
February 18, 2015 12:22
-
-
Save glubo/f14e23d5ad206d946b3e to your computer and use it in GitHub Desktop.
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
for file in *.jpg; do | |
if grep $file /tmp/a.txt;then | |
echo "not moving $file" | |
else | |
echo "moving $file" | |
mv $file to_delete/$file | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment