scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit 675d70e616cb764c685070427a914e4b99f3cee7
parent 133dd8180878a68845695d48af50d7f20d1bc8db
Author: Sebastiano Tronto <sebastiano.tronto@gmail.com>
Date:   Tue, 10 May 2022 15:09:40 +0200

Fixed Network status (what kind of cli program add random white spaces at the end of a line? why? WHY?!?!)

Diffstat:
Mstatus | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/status b/status @@ -21,7 +21,10 @@ else fi #network=$(nmcli device status | head -n 2 | tail -n 1 | awk '{print "Network: " $4}') -network="Network: $(nmcli device status | head -n 2 | tail -n 1 | sed 's/.* //')" +# NetworkManager has a dreadful command line interface +# It makes cry every time +# pls help +network="Network: $(nmcli device status | head -n 2 | tail -n 1 | sed 's/ *$//' | sed 's/.* //')" events=$(sdep-list past | wc -l)