Skip to content

Instantly share code, notes, and snippets.

@komamitsu
Created July 31, 2019 04:55
Show Gist options
  • Save komamitsu/371983b53fbf3c3a5e837fe6988dca1c to your computer and use it in GitHub Desktop.
Save komamitsu/371983b53fbf3c3a5e837fe6988dca1c to your computer and use it in GitHub Desktop.
Commands
function wrap_jth {
grep 'daemon prio=' $1 | ruby -rcsv -ne 'puts CSV.parse($_,{:col_sep => "\s"}).first.first.gsub(/\d/, "0")' | sort | uniq -c
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment