adamdehaven / fetchurls

A bash script to spider a site, follow links, and fetch urls (with built-in filtering) into a generated text file.
https://www.adamdehaven.com/blog/easily-crawl-a-website-and-fetch-all-urls-with-a-shell-script/
MIT License
127 stars 45 forks source link

Bash Error #1

Closed cyaris closed 5 years ago

cyaris commented 5 years ago

Hey Adam!

Really cool concept. Do you know what this error might mean?

fetchurls-master/fetchurls.sh: line 61: read: -i: invalid option

Thanks, Charlie

adamdehaven commented 5 years ago

It's most likely related to the version of bash you're running.

The read -i feature is bash specific, and only available in bash version 4.0 and above.

Hope that helps.

If you need to modify the script to work without the -i option, let me know.