mahbinstuff/ruler
Howland Owl a92c39c710 Revert "Merge branch 'home' into 'fixthatshit'"
This reverts commit 1639a576f4, reversing
changes made to cc75e76c65.
2016-12-09 21:22:01 +02:00

1 line
201 B
Text

ruler() { for s in '....^....|' '1234567890'; do w=${#s}; str=$( for (( i=1; $i<=$((($COLUMNS + $w) / $w )) ; i=$i+1 )); do echo -n $s; done ); str=$(echo $str | cut -c -$COLUMNS) ; echo $str; done; }