Last Updated: September 09, 2019
·
1.247K
· lukaszkorecki

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"

2 Responses
Add your response

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 ·