I know I can separate long commands in bash using \
- is there a way to write inline comments?
For example, something like:
wget \
# Needed to get to end of around 100 pages of results
--level=0 \
# Save into downloads directory
--directory=downloads \
--recursive \
# Normally wget won't span hosts, and .example.com use a CDN
--span-hosts --domains='assets.publishing.example.com,www.example.com' \
# Only care about links matching this regex
--accept-regex 'assets|swag' --regex-type pcre
# The site we actually want to scrape
'https://www.example.com/swag'
If this is possible using zsh
pwsh
or similar I'm also interested.