remove the folder/file part from url

some hostnames in the top-1m.csv file have folder or site specified
in them, cut it off before using
This commit is contained in:
Hubert Kario 2014-05-08 02:06:57 +02:00
parent 00b20a20ed
commit a213fc45d0
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ count=$(wc -l top-1m.csv | awk '{print $1}')
while [ $i -lt $count ]
do
echo processings sites $i to $((i + parallel))
for t in $(tail -$(($count - $i)) top-1m.csv | head -$parallel |cut -d ',' -f 2)
for t in $(tail -$(($count - $i)) top-1m.csv | head -$parallel |cut -d ',' -f 2|cut -d "/" -f 1)
do
(scan_hostname $t)&
done