Skip to content

Instantly share code, notes, and snippets.

Created March 28, 2016 13:04
Show Gist options
  • Save anonymous/f942a75235f52d0c0aba to your computer and use it in GitHub Desktop.
Save anonymous/f942a75235f52d0c0aba to your computer and use it in GitHub Desktop.
Going to run: find /usr -name "*c*" -type f -exec cat {} \; | wc -l
0.23s user 0.91s system 17% cpu 6.468 total
0.34s user 0.87s system 18% cpu 6.659 total
0.27s user 0.87s system 17% cpu 6.527 total
0.31s user 0.89s system 17% cpu 6.777 total
0.29s user 0.96s system 17% cpu 6.928 total
Going to run: find /usr -name "*c*" -type f -exec cat {} + | wc -l
0.14s user 0.32s system 95% cpu 0.484 total
0.14s user 0.20s system 94% cpu 0.360 total
0.12s user 0.23s system 93% cpu 0.371 total
0.10s user 0.22s system 86% cpu 0.361 total
0.15s user 0.17s system 93% cpu 0.345 total
Going to run: find /usr -name "*c*" -type f -print0 | xargs -0 cat | wc -l
0.13s user 0.20s system 93% cpu 0.355 total
0.13s user 0.19s system 92% cpu 0.346 total
0.15s user 0.20s system 93% cpu 0.372 total
0.14s user 0.19s system 94% cpu 0.355 total
0.15s user 0.18s system 92% cpu 0.358 total
Going to run: for i in /usr/**/*c*(.) ; do cat $i; done | wc -l
0.12s user 0.06s system 1% cpu 9.121 total
0.11s user 0.06s system 1% cpu 9.267 total
0.08s user 0.10s system 1% cpu 9.554 total
0.08s user 0.09s system 1% cpu 9.236 total
0.10s user 0.08s system 1% cpu 9.692 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment