Skip to content

Instantly share code, notes, and snippets.

@franklinjavier
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save franklinjavier/98067430eb54e7164388 to your computer and use it in GitHub Desktop.

Select an option

Save franklinjavier/98067430eb54e7164388 to your computer and use it in GitHub Desktop.
basetime=$(date +%s%N) &&
grep --color=auto -rnw 'try.lisp' -e "macbook.*apple" -e "apple.*macbook" | wc -l &&
echo "runtime: $(echo "scale=3;($(date +%s%N) - ${basetime})/(1*10^09)" | bc) seconds"
#grep "apple" try.lisp | grep "macbook" | grep "WordPress" | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment