by rat_melter · 7y ago · 0 comments
$ mv file.text !#:1:r.txt
evaluates to:
$ mv file.text file.txt
(colon separated)
!# means this command
1 is the position of the argument to be modified
r means strip extension
There's tons of history modifiers and a lot to be learned reading `man bash`.No comments yet.