Mar 182007
Print the last executed command begin with a specific letter
To print the last executed command begin with a specific letter, e.g.
# date
Thu Mar 18 21:55:55 HKT 2007
!d:p
date
The key is the :p modifier
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Print the last executed command begin with a specific letter
To print the last executed command begin with a specific letter, e.g.
# date
Thu Mar 18 21:55:55 HKT 2007
!d:p
date
The key is the :p modifier