nuno hat die Gist bearbeitet 1 month ago. Zu Änderung gehen
1 file changed, 16 insertions
gistfile1.txt(Datei erstellt)
| @@ -0,0 +1,16 @@ | |||
| 1 | + | "$row_color" \ | |
| 2 | + | "$name_pad" "$ip_pad" "$type_pad" \ | |
| 3 | + | "$row_color" "$rule_val" "$rule_pad_n" "" \ | |
| 4 | + | "$row_color" "$group_val" "$group_pad_n" "" \ | |
| 5 | + | "$status_color" "$status_pad" \ | |
| 6 | + | "$status_color" "$ts_pad" | |
| 7 | + | else | |
| 8 | + | # Normal online row — white fields, colored status/last_seen | |
| 9 | + | printf " %s %s %s \033[2mrule:\033[0m %s%*s \033[2mgroup:\033[0m %s%*s %b%s\033[0m %b%s\033[0m\n" \ | |
| 10 | + | "$name_pad" "$ip_pad" "$type_pad" \ | |
| 11 | + | "$rule_val" "$rule_pad_n" "" \ | |
| 12 | + | "$group_val" "$group_pad_n" "" \ | |
| 13 | + | "$status_color" "$status_pad" \ | |
| 14 | + | "$status_color" "$ts_pad" | |
| 15 | + | fi | |
| 16 | + | } | |
Neuer
Älter