Created
March 26, 2015 15:15
-
-
Save next-marianmoldovan/e0e2029a04d4829a6501 to your computer and use it in GitHub Desktop.
Clean other files that are not images bash script
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
file * | grep -v image > noimage | |
cat noimage | cut -d : -f 1 | noimageids | |
rm -f $(<noimageids) | |
rm noimageids |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment