Skip to content

Instantly share code, notes, and snippets.

@tleonardi
Last active August 29, 2015 14:01
Show Gist options
  • Save tleonardi/a0d296916cb390b84d8c to your computer and use it in GitHub Desktop.
Save tleonardi/a0d296916cb390b84d8c to your computer and use it in GitHub Desktop.
Oneliner to plot the number of LSF jobs for the 30 users with most running jobs
bjobs -r -u all | tail -n +2 | awk '{print $2}' | sort | uniq -c | sed 's/^*//' | sort -k1,1nr | head -30 | /usr/bin/gnuplot -persist -e "set boxwidth 0.1;set style fill solid 0.5 border -1; set logscale y;plot '-' using 1:xtic(2) with boxes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment