I am just trying to count how many URLs match with the pattern x--*.html
. In this case below all files that match are being downloaded.
$ wget --random-wait --mirror --no-parent -A x--*.html myBaseURL &
Since I just want a count, is there some way to avoid transferring all these pages?
NOTE: I know there is a command --delete-after
, but it still transfers.
Any ideas?
--delete-after
is the best option, do you agree?wget
to write the files to/dev/null
.wget ... -O /dev/null
. That way it won't even write them to disk, it'll just drop them from the get go.