Skip to content

Instantly share code, notes, and snippets.

@PatrickSchiffmann
Last active November 21, 2023 09:06
Show Gist options
  • Save PatrickSchiffmann/42d1d37e1b685eb89fba52edd619158e to your computer and use it in GitHub Desktop.
Save PatrickSchiffmann/42d1d37e1b685eb89fba52edd619158e to your computer and use it in GitHub Desktop.
find -name "archive\.tar" | xargs -i tar xvf {} -O 2>/dev/null | grep -H -i "^Program finished successfully\|error" > logs.txt
grep successfully logs.txt | wc -l
grep Error logs.txt | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment