Skip to content

Instantly share code, notes, and snippets.

@zuigon
Created August 30, 2010 21:01
Show Gist options
  • Save zuigon/558047 to your computer and use it in GitHub Desktop.
Save zuigon/558047 to your computer and use it in GitHub Desktop.
➜ test cat brew_upgrade_log.txt | sed 's:.*in ::g' | grep minutes | awk '{print $1, "* 60"}' | bc | sed 's:\.0::g'
198
168
258
120
➜ test cat brew_upgrade_log.txt | sed 's:.*in ::g' | grep minutes | awk '{print $1, "* 60"}' | bc | sed 's:\.0::g' | pbcopy
➜ test echo "82 + 66 + 5 + 2 + 21 + 51 + 2 + 2 + 38 + 31 + 14 + 45 + 21 + 198 + 168 + 258 + 120" | bc
1124
➜ test echo "(82 + 66 + 5 + 2 + 21 + 51 + 2 + 2 + 38 + 31 + 14 + 45 + 21 + 198 + 168 + 258 + 120) / 60" | bc
18
➜ test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment