Skip to content

Instantly share code, notes, and snippets.

@irace
Created August 3, 2012 19:04
Show Gist options
  • Save irace/3250478 to your computer and use it in GitHub Desktop.
Save irace/3250478 to your computer and use it in GitHub Desktop.
Aggregate and sort Flurry exception CSV files
if [ -f "errors.txt" ]; then `rm errors.txt`; fi; for file in *.csv; do `tail -n +2 "$file" |
cut -d , -f 3 >> /tmp/errors`; done; sort /tmp/errors > errors.txt; rm /tmp/errors; less errors.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment