Hacker News new | past | comments | ask | show | jobs | submit login

And the reason for the other approach - global substitution (otherwise the caret approach is simpler)

    $ ls
    hello_world hi_there_world
    $ mv hello_world hello_everyone
    $ !!:gs/hello/hi_there
    mv hi_there_world hi_there_everyone
    $ ls
    hi_there_world hi_there_everyone



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: