Changeset 1096


Ignore:
Timestamp:
Apr 23, 2009, 11:57:31 PM (16 years ago)
Author:
quentin
Message:
Fix alignment a bit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • noc/nagios/status-user/finger.sh

    r1095 r1096  
    22
    33docnagios() {
    4         echo q | env TERM=ansi LINES=1000 COLS=80 /usr/local/nagios/bin/cnagios -b "$@" | sed 's/
     4        echo q | env TERM=ansi LINES=1000 COLUMNS=80 /usr/local/nagios/bin/cnagios -b "$@" | sed 's/
    55\[B/\n/g; s/
    66/\n/g' | perl -pe '
     
    88s/(.)\\[(\d+)b/$1x($2+1)/ge; # (\d+)b means repeat previous character n times
    99s/\\[(\d+)d//g; # absolute go to line; ignored
    10 s/\\[(\d+)G/" "x($1-$-[0]-1)/ge; # go to absolute horizontal position
    11 s/\\[\d+;(\d+)H/" "x($1-$-[0]-1)/ge; # go to absolute position; line ignored
     101 while s/\\[(\d+)G/" "x($1-$-[0]-1)/e; # go to absolute horizontal position
     111 while s/\\[\d+;(\d+)H/" "x($1-$-[0]-1)/e; # go to absolute position; line ignored
    1212'
    1313}
Note: See TracChangeset for help on using the changeset viewer.