How to find the parameters of the previous command