Meaning/usage of $_ in bash

Michael ODonnell michael.odonnell at comcast.net
Wed Jul 23 20:49:30 EDT 2008



> For added "fun", try this series of commands:
>
> echo foo
> echo /$_/

And given what's been learned (ie. that $_ and !$ are
equivalent in this context) it should now be no surprise
that the same result is seen with "echo /!$/"
 


More information about the gnhlug-discuss mailing list