16.04 - Is there a command to recall last command for editing with memory of cursor position? - Ask Ubuntu
what mean like, if had command chain: (here |
references cursor position before hit enter)
$ youtube-dl -f |18 --yes-playlist https://blah.blah.com $ x
what command x
recall previous command cursor before 18 can edit number super-quickly ?
i'm not aware of such shortcut, if want change first occurrence of 18
in line, can use history interaction:
^18^something-else
for example:
$ ls 18 ls: cannot access '18': no such file or directory $ ^18^2003^ ls 2003 ls: cannot access '2003': no such file or directory $ ^2003^a b^ ls b ls: cannot access 'a': no such file or directory ls: cannot access 'b': no such file or directory
Comments
Post a Comment