Command line snippet of the week: 2
14th of January, 2010 | Filed under Code Snippet of the Week
The snippet this week will be about copying arguments without retyping everything. It would be easier to show you how this works:
$ cd /home/user/flx cd: /home/user/flx: No such file or directory $ mkdir !* mkdir /home/user/flx
By using !* it repeats all arguments previously used. If you only want to use the second argument for example, you use !:2.
