What is Nostr?
⚡Eineygður ☯ Flakkari⚡ /
npub1zwa…z2ya
2024-10-21 06:30:35
in reply to nevent1q…mtzj

⚡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 | ...
Author Public Key
npub1zwa070cd97f9ntd8csqh40xv36gjmgasg2ykktxqfjh52vkar6rq7vz2ya