I get an error saying “value: Undefined variable.”
Does anyone know my mistake? I have tired various combinations of forward/back slashes before the $value. What is the logic of $value? Should i set that independently prior to executing wget? If i omit $value it complains that there is no url.
Any help would be much appreciated
Thank you
Lynsey Parker
If you read on in the instructions you will see that when using a “Unix Shell” the URL needs to have $value (here, “Unix” refers to a variety of operating systems including macOS and linux. For linux, the terminal typically uses the bash shell, which is one (of many) Unix Shell programs).
NOTE: Depending on the programming language used for scripting, the dollar ($) character might be interpreted as a wildcard character and not as a string value. The examples in this page are in Unix Shell and the backslash (\) needs to be used as escape character for the dollar ($) character.
Users new to the linux command line find it helpful to dedicate some time to learning linux command-line basics. There are many good resources, including youtube videos (search for site:youtube.com linux shell). A good place to start is Linux Command.
In this case, csh is actually more helpful than bash, but because bash is the default for the terminal in most linux distros, most online recipes assume bash: