changed grep, instead if using perl, standardd regexp

This commit is contained in:
Peter Hedenskog 2012-08-03 21:08:25 +02:00
parent da330d9c2a
commit 72a5a0b108
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ index=0
links=$(wget -r -l $DEPTH -nd -t $RETRIES -e robots=off --no-check-certificate --follow-tags=a --spider $USER $PASSWORD $URL 2>&1 | while read line
do
echo "$line" | grep -P "\-\-\d{4}" | cut -d " " -f 4
echo "$line" | grep -E "\-\-\d{4}" | cut -d " " -f 4
done)
result=($(printf '%s\n' "${links[@]}"|sort|uniq))