Skip to content

Instantly share code, notes, and snippets.

@mina86
Last active December 17, 2015 20:59
Show Gist options
  • Save mina86/5671734 to your computer and use it in GitHub Desktop.
Save mina86/5671734 to your computer and use it in GitHub Desktop.
line() {
local line=--------------------
while [ ${#line} -lt $COLUMNS ]; do
line=$line$line
done
printf "%.$(($COLUMNS - 9))s %(%H:%M:%S)T\\n" "$line" -1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment