fix #1275
This commit is contained in:
parent
ad6ecdb3fc
commit
762eadd9d1
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ getdailyhighlow() {
|
||||||
echo "$weatherdata" | sed '13q;d' | # Extract line 13 from file
|
echo "$weatherdata" | sed '13q;d' | # Extract line 13 from file
|
||||||
grep -o "m\\([-+]\\)*[0-9]\\+" | # Find temperatures in the format "m<signed number>"
|
grep -o "m\\([-+]\\)*[0-9]\\+" | # Find temperatures in the format "m<signed number>"
|
||||||
sed 's/[+m]//g' | # Remove '+' and 'm'
|
sed 's/[+m]//g' | # Remove '+' and 'm'
|
||||||
sort -n -k 2n | # Sort in ascending order
|
sort -g | # Sort in ascending order
|
||||||
sed -e 1b -e '$!d' # Extract the first and last lines
|
sed -e 1b -e '$!d' # Extract the first and last lines
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue