Quickly substitute a string in previous command
Lets say you just run this command:
$ pgrep -f "thin|unicorn"
...now you can quickly turn it into pkill
with:
$ ^pgrep^pkill
pkill -f "thin|unicorn"
Written by Łukasz Korecki
Related protips
2 Responses
Caveat that ^^ is not global See notes/comments here: https://coderwall.com/p/_-_cmq
over 1 year ago
·
your git tip has become a sticky not on my monitor till I 10%absorb it! thanks
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#