Anzeige mit Verzögerung
echo "lolo is a dancer"| pv -qL 5
Mehr Infos: https://www.baeldung.com/linux/terminal-simulate-typing-effect
find ./ -type f -exec grep -Hn "upload_max_filesize" {} \;
curl "http://fritz.box:49000/igdupnp/control/WANIPConn1" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress" -d "<?xml version='1.0' encoding='utf-8'?> <s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'> <s:Body> <u:GetExternalIPAddress xmlns:u='urn:schemas-upnp-org:service:WANIPConnection:1' /> </s:Body> </s:Envelope>" -s | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>' | |
Bei mir hat dieser Einzeiler funktioniert. | |
mehr Info und ander Bashzeilen gibts hier: | |
https://wiki.ubuntuusers.de/FritzBox/Skripte/ |
#!/bin/bash | |
# Ruby Gem Psych muss installiert sein. | |
readarray -t a < <(ls *.yaml) | |
for IND in ${!a[@]}; do | |
lolo="${a[$IND]}" | |
ruby -ryaml -e "Psych.parse(File.open('$lolo'))" | |
if [[ $? -ne 0 ]] | |
then | |
echo "$lolo is not valid YAML" | |
# exit 1 |
#!/bin/bash | |
# u=$(curl -k https://wetter2.mt-labor.it.hs-worms.de/api/data ) | |
u=$(curl -k https://wetter.hs-worms.de/api/v3/data) | |
temperatur=$(echo $u|jq ".temperature.out") | |
vorhersage=$(echo $u|jq '.forecast.text') | |
barometer=$(echo $u|jq '.baro') | |
regenrate=$(echo $u|jq '.rain.rate') | |
windrichtung=$(echo $u|jq '.wind.dir.text') | |
windgeschw=$(echo $u|jq '.wind.avg.kmh') | |
feuchte=$(echo $u|jq '.humidity.out') |
Anzeige mit Verzögerung
echo "lolo is a dancer"| pv -qL 5
Mehr Infos: https://www.baeldung.com/linux/terminal-simulate-typing-effect
find ./ -type f -exec grep -Hn "upload_max_filesize" {} \;