Files
gists/depth
2017-09-18 11:47:26 +02:00

17 lines
274 B
Bash
Executable File

#!/bin/bash
max=0
open=0
grep -Po "</?div" OFFIZIELLE\ GEWINN...htigung\ und\ letzter\).eml | while read tag; do
if [[ "$tag" == "<div" ]] ; then
(( open++ ))
else
(( open--))
fi
echo "$open - $max"
if [[ $open -gt $max ]] ; then
max=$open
fi
done