Last active
December 23, 2015 18:19
-
-
Save cwvhogue/6675078 to your computer and use it in GitHub Desktop.
Command to clean up MapReduce ImageMagick identify output and convert to .csv file
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
| cat mr_identify.txt | \ | |
| awk '{print $7 " " $1 " " $3}' | \ | |
| sed 's/.\///' | \ | |
| sort -n | \ | |
| sed -e 's/MB/ MB/' -e 's/KB/ KB/' | \ | |
| -e 's/+0+0//' -e 's/x/ /' | \ | |
| awk '{print $1 ", " $2 ", " $3 ", " $4 ", " $5}' > Getty_Filesizes.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment