13 lines
166 B
Bash
Executable File
13 lines
166 B
Bash
Executable File
#!/bin/bash
|
|
|
|
prev=0
|
|
found=0
|
|
while read current; do
|
|
if [ $prev -gt 0 ] && [ $current -gt $prev ]; then
|
|
found=$((found+1))
|
|
fi
|
|
prev=$current
|
|
done
|
|
|
|
echo $found
|