4 ms·
and !N, where N is a number, is the Nth command in your history.
by spc476 14y ago
and !N, where N is a number, is the Nth command in your history.
- mturmon 14y agoAnd !N:$ is the last argument of the N'th command in history. Even more useful, !vi:$ is the last argument of the last "vi" you did.
- zimpenfish 14y agoWoah, clearly I need to spend tomorrow re-reading the BASH manual.