News for hackers. Stuff that matters.
Re:The most useful thing in bash by spc476 on Wednesday April 17, 2013 @02:33PM (#5566156)
and !N, where N is a number, is the Nth command in your history.
Re:The most useful thing in bash by mturmon on Wednesday April 17, 2013 @02:48PM (#5566257)
And !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.
Re:The most useful thing in bash by zimpenfish on Wednesday April 17, 2013 @03:28PM (#5566523)
Woah, clearly I need to spend tomorrow re-reading the BASH manual.