I suppose this is almost sort of a trivia question, but is there a way to pull up a previous command from the bash shell history and modify it before using it? Other than doing a copy and paste I mean. For instance, if I do:
And I see that command number 423 is:Code:history
So if I want to re-execute that command I could simply do:Code:423 cat /boot/grub/menu.lst
But what if I want to modify that command slightly before executing it? Is there an easy way of doing that? Just curious.Code:!423
Bookmarks