⚡Eineygður ☯ Flakkari⚡ on Nostr: npub1vuj6r…pmr6e Not sure why anyone would claim you should never use `cat`. If ...
npub1vuj6rlfvarx0ajldz9rehzgt40ve09dj0603m20syx2h5xpqgd7qrpmr6e (npub1vuj…mr6e)
Not sure why anyone would claim you should never use `cat`. If they do, then they don't know what they're talking about.
It's not exclusively for pipelines...
function foo {
cat <<EOF
Some text
${some_var}
Moar text
EOF
}
Also as an alternative to scp, rsync, etc...
ssh user@host 'cat > remotefile' < localfile
The above won't work unless you use `cat`.
And of course it's short for "concatenate" which means you can do...
cat file0 file1 file2 | ...
Not sure why anyone would claim you should never use `cat`. If they do, then they don't know what they're talking about.
It's not exclusively for pipelines...
function foo {
cat <<EOF
Some text
${some_var}
Moar text
EOF
}
Also as an alternative to scp, rsync, etc...
ssh user@host 'cat > remotefile' < localfile
The above won't work unless you use `cat`.
And of course it's short for "concatenate" which means you can do...
cat file0 file1 file2 | ...