Extract the Filename from the last referenced filename in Bash

I follow @climagic because I love seeing how people are using various tools via the command line and I often find myself learning something new. Today’s entry is definitely one of those.

tar xvf program-1.2.3.tar.gz ; cd ${_%%.tar.gz}

I’m flagging this one as a keeper :)


Mentions