Outputs the last field from the last command executed, useful to get something to pass onwards to another command:
~> $ ls *.sh;echo $_
testscript1.sh testscript2.sh
testscript2.sh
test.sh:
#!/bin/bash
echo "$_"
Output:
~> $ ./test.sh # running test.sh
./test.sh
Note: This is not a foolproof way to get the script path