main
fanta 2 days ago
parent 76983bc00b
commit eefc422b87

@ -28,7 +28,7 @@ function run {
then echo "Toot no valido" then echo "Toot no valido"
else else
walkerName=$(toot thread "$not" --no-color | head -2 | tail -1 | cut -d "@" -f 2,3 | cut -d " " -f 1) walkerName=$(toot thread "$not" --no-color | head -2 | tail -1 | cut -d "@" -f 2,3 | cut -d " " -f 1)
walkerDate=$(toot thread "$not" --no-color | head -2 | tail -1 | cut -d "@" -f 2,3 | rev | cut -d " " -f 1,2 | rev) walkerDate=$(toot thread "$not" --no-color | head -2 | tail -1 | cut -d "@" -f 2,3 | rev | cut -d " " -f 1,2,3 | rev | sed "s/ //g")
walkerFile=$(echo "$scriptDir/walkers/$walkerName") walkerFile=$(echo "$scriptDir/walkers/$walkerName")
walkerKm=$(toot thread "$not" --no-color | grep -i "@caminosantiago añade " | grep -i "km" | head -1 | tr " " "_" | rev | cut -d "_" -f 1 | rev | tr '[:upper:]' '[:lower:]' | sed 's/km//g') walkerKm=$(toot thread "$not" --no-color | grep -i "@caminosantiago añade " | grep -i "km" | head -1 | tr " " "_" | rev | cut -d "_" -f 1 | rev | tr '[:upper:]' '[:lower:]' | sed 's/km//g')
walkerKM=$(echo $walkerKM | sed 's/[^0-9]*//g') # Remove all non-numeric characters walkerKM=$(echo $walkerKM | sed 's/[^0-9]*//g') # Remove all non-numeric characters

Loading…
Cancel
Save