Ein Vergleich :
find . -type f -exec md5sum {} + | sort | uniq -w32 -Di
Ordner mit ca. 100 Videos durchsucht in 1 Minute 57 Sek ; 11 Treffer oder
find . -type f -exec xxhsum -H3 {} + | sort | uniq -w32 -Di
scp [email protected]:/tmp/motion/* /home/karl/Downloads/birdcam2 |
!/bin/bash | |
# Setze die Variablen | |
GIST_ID="99ad8c8128785c1c0b35e16a42f8b08c" | |
FILE_NAME="test.md" | |
GITHUB_TOKEN="dein_github_token" | |
GIST_URL="https://api.github.com/gists/$GIST_ID" | |
# Lese den Inhalt der Datei | |
CONTENT=$(cat $FILE_NAME) |
#!/bin/bash | |
# Tagesvergleich für $test.Wenn Tag von date ist Tag von codate dann "Heute neue Datei" | |
# evtl muss das Script auf die Antwort des Webservers angepasstwerden. | |
test=https://url/lolo.xyz | |
codate=$(curl -sI $test | grep -i '^Last-Modified'|sed 's/Last-Modified: //g') | |
codate1=$(date -d "$codate" +%d) | |
date1=$(date +%d) | |
if [ $date1 -eq $codate1 ] | |
then | |
echo "heute neue Datei" |
Wenn es die Daten tatsächlich gibt, kann man echo durch wget ersetzen.
datum=$(date -u '+%y%m%d%H'); minute5=$(printf %02d $((($(date '+%M')-5)/5*5))) ; for ((i = 0 ; i < 125 ; i=i+5)); do echo https://opendata.dwd.de/weather/radar/radvor/re/RE$datum$minute5"*"$(printf %03d $i).gz; done
#!/bin/bash | |
a="1 | |
2 | |
3" | |
b="1 | |
2 | |
4" | |
diff <( echo "$a" ) <( echo "$b" ) |
set linenumbers | |
set historylog | |
set backup | |
set backupdir "/home/foobar/nano-backups" |