I have tried fiddling with echo command to to add $_GET
to a text file but looks like it does not work but escaping it with \
works may be because $
is special character in bash.
For example, echo "\$_GET" >> newfile.txt
works.
What I wanted to ask is how does echo
work in each of the following two cases in the given screenshot. The second functionality of echo
is what I am not able to grasp.
$_
"expands to the last argument to the previous command, after expansion" - seeman bash
underSpecial Parameters