I am trying to make a script in the shell that executes a page's specific HTML.
However, whenever I try to set the variable to curl https://scratch.mit.edu
, it shows =: command not found, I searched this on Google and it tells me to set the variable like this:
PROJECT = curl https://scratch.mit.edu
However, this does not meet my needs because it shows
PROJECT: command not found
So, I try this:
$PROJECT = curl https://scratch.mit.edu
It did work for clearing the variable error but then, this happens
=: command not found
EDIT: I just realized -
it should be
$PROJECT=curl https://scratch.mit.edu
but then this is what the error is:
Command '=curl' not found, did you mean:
command 'curl' from snap curl (7.84.0)
command 'curl' from deb curl (7.81.0-1ubuntu1.4)
See 'snap info <snapname>' for addition versions
What do I do?
Note that this question is different from this as I cannot use the function curl and assign the value to the variable