Code: Alles auswählen
for i in `seq $COLUMNS`; do
case $(( i % 10 )) in
0) e -n $(( i / 10 % 10 ));;
9) e -n _;;
*) e -n $(( i % 10 ));;
esac
done
Code: Alles auswählen
alias ruler='(for i in `seq $COLUMNS`;do case $((i%10)) in 0) e -n $((i/10%10));;9) e -n _;;*) e -n $((i%10));;esac;done)'
Code: Alles auswählen
~$ ll /sbin | head
total 6112
-rwxr-xr-x 1 root root 3104 02.12. 2009 10:33:35 acpi_available
-rwxr-xr-x 1 root root 4508 15.12. 2010 14:40:29 activate
-rwxr-xr-x 2 root root 18552 25.01. 2011 20:19:09 agetty
-rwxr-xr-x 1 root root 3404 02.12. 2009 10:33:35 apm_available
-rwxr-xr-x 1 root root 19456 18.06. 2011 19:46:03 badblocks
-rwxr-xr-x 1 root root 19176 25.01. 2011 20:19:09 blkid
-rwxr-xr-x 1 root root 10484 25.01. 2011 20:19:09 blockdev
-rwxr-xr-x 1 root root 12208 27.03. 2012 23:38:24 bootlogd
-rwxr-xr-x 1 root root 14052 16.08. 2010 23:40:43 capsh
~$ ruler
12345678_112345678_212345678_312345678_412345678_512345678_612345678_712345678_812345678_912345678_012345678_112
~$ ll /sbin | head | cut -b 45-52
10:33:35
14:40:29
20:19:09
10:33:35
19:46:03
20:19:09
20:19:09
23:38:24
23:40:43
der_linux_cowboy