I know that there are ten different alternatives. Why don’t we simply improve the basic stuff?

  • @iusearchbtw@lemm.ee
    link
    fedilink
    262 months ago

    Am I not reading your question right? Just quote the variable and filenames with spaces work fine.

    for i in *; do
        cat "$i" ;
    done