• Gamma@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    10 months ago

    Typically find "$HOME/docs", but with a few caveats:

    • In Zsh or Fish, the quotes are unnecessary: find $HOME/docs

    • If I’m using anything potentially destructive: mv "${HOME:?}/bin" ...

    • Of course, if it’s followed by a valid identifier character, I’ll add braces: "${basename}_$num.txt"