I'm trying to grep through some logs at the url below to look for a specific username. However I'm getting no results, it just runs without stopping.
grepfor="username"
urls=("https://tgstation13.org/parsed-logs/terry/data/logs/2019/01")
while [ ${#urls[@]} -ne 0 ]
do
content="$(curl -s "$url[0]")"
echo "$content" | grep "$grepfor"
delete=($urls[0])
add=(`echo "$content" | grep -Po '(?<=href=")[^"]*'`)
urls=( "${urls[@]/$delete}" "{$add[@]}" )
done