Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

in bash you can use $_ to access the last argument of the previous command. It lets you do things like this:

    $ pwd
    /home/foo
    $ mkdir -p bar/baz/qux && cd $_
    $ pwd
    /home/foo/bar/baz/qux


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: