Skip to content

Instantly share code, notes, and snippets.

@figital
Created December 12, 2012 23:12
Show Gist options
  • Save figital/4272551 to your computer and use it in GitHub Desktop.
Save figital/4272551 to your computer and use it in GitHub Desktop.
awk -v W=`tput cols` '{print NR "\t" substr($0,1,W-length(NR)-8) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment