How to use arguments from previous command? !$ gets the last element of the previous command line argument.