Last active
December 23, 2015 18:19
-
-
Save cwvhogue/6675061 to your computer and use it in GitHub Desktop.
Command to clean up results of MapReduce ImageMagick identify command and output as a .csv file.
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
cat manta_identify_sorted.txt | \ | |
awk '{print $7 " " $1 " " $3}' | \ | |
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