shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Ajuda com formatação


From: Caio Silva
Subject: Re: [shell-script] Ajuda com formatação
Date: Mon, 30 May 2011 13:09:31 -0300

*Acredito que colocando as variáveis entre aspas duplas...
*
*
*
*
*
*Mas teste assim:
*
*
*
*
#!/bin/sh
echo "Interface | Station | signal | Tx BitRate"
for i in 1 2; do
        interface=$(wl wlan${i} station dump | grep -o wlan.)
        station=$(wl wlan${i} station dump | grep "Station" | cut -d " "
-f2)
        signal=$(wl wlan${i} station dump | grep "signal" | cut -d ":" -f2)
        bitrate=$(wl wlan${i} station dump | grep "tx bitrate" | cut -d ":"
-f2)
        echo "$interface $station $signal $bitrate"
done
*
*
*
2011/5/30 edmundo_goncalves <address@hidden>

> echo $interface $station $signal $bitrate


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]