Skip to main content
9 events
when toggle format what by license comment
Jun 14, 2022 at 13:57 comment added Lubo Kanev There's also !:-2 which gives you everything up until the 2nd argument. In this case echo a b.
Sep 29, 2020 at 1:28 history bounty ended Adam Smith
Nov 22, 2019 at 13:32 comment added 816-8055 @bbv Also for even more completeness the command '!2' which allows you to access the second entry in the history (if it's still available depending on your history settings). Useful if you display the history number in each prompt.
May 17, 2017 at 8:05 comment added bbv I liked this answer a lot and just for the completeness sake, I suggest to also add a line telling about '!-2' syntax that allows you to access previous to previous command.
Apr 9, 2017 at 19:39 history edited nonopolarity CC BY-SA 3.0
added 38 characters in body
Nov 26, 2016 at 15:35 comment added Charlie Harding Is there a way to get the second-last item? i.e. get file3 from mv file1 file2 file3 target/?
Aug 12, 2016 at 11:58 history edited rogerdpack CC BY-SA 3.0
and add another :)
Sep 1, 2015 at 13:46 history edited nonopolarity CC BY-SA 3.0
added 323 characters in body
Sep 1, 2015 at 13:16 history answered nonopolarity CC BY-SA 3.0