Post #1384910
2025-12-16 14:45 UTC
And if an argument recurs, global replacement is:
^foo^bar^:&
Replies (1)
-
@ystael@beehaw.org 2025-12-17 23:42
I usually spell this as !!:gs/foo/bar/ (in bash). Is there a functional difference? ! command history can also take line and word selectors. I type something like !-2:2 surprisingly often.