Ctrl+P again to print, arrows/tab to navigate results, Enter to confirm, Ctrl+Enter to open in new tab.

    Basic tips

    Parameter expansion

    Parameter expansion is useful to get or replace substrings, get the length of values or change the case of strings.

    a="Hello, World!"
    echo ${a:0:5}  # Hello
    echo ${#a}     # 13
    echo ${a//o/O} # HellO, WOrld!
    echo ${a@U}    # HELLO, WORLD!
    echo ${a@L}    # hello, world!