give me wget command for downloading a page with one level of links
- User
give me wget command for downloading a page with one level of links
- Assistant
wget --recursive --level=1 --convert-links --timestamping --no-parent [URL]
- User
suggest --reject-regex= option for names ending with diff
- Assistant
wget --recursive --level=1 --convert-links --timestamping --no-parent --reject-regex=".*diff$" [URL]
- User
suggest --accept-regex= option for items in subdirectory "xfgc"
- Assistant
wget --recursive --level=1 --convert-links --timestamping --no-parent --accept-regex="./xfgc/." [URL]
- User
suggest --reject-regex= option for names ending with /diff or /get
- Assistant
wget --recursive --level=1 --convert-links --timestamping --no-parent --reject-regex=".*/diff" [URL]
- User
isn't it supposed to be comma separated list?
- Assistant
Apologies for the confusion. You are correct. For multiple patterns, you indeed need to specify them as a comma-separated list. Here's the corrected command:
wget --recursive --level=1 --convert-links --timestamping --no-parent --reject-regex="./diff,./get" [URL]