alias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 2 days agocat posttitle.txt | grep memelemmy.worldimagemessage-square48fedilinkarrow-up1356arrow-down15
arrow-up1351arrow-down1imagecat posttitle.txt | grep memelemmy.worldalias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 2 days agomessage-square48fedilink
minus-squareexpr@programming.devlinkfedilinkarrow-up18·edit-22 days agocat file.txt | grep foo is unnecessary and a bit less efficient, because you can do grep foo file.txt instead. More generally, using cat into a pipe is less efficient than redirecting the file into stdin with <, like grep foo < file.txt.
cat file.txt | grep foois unnecessary and a bit less efficient, because you can dogrep foo file.txtinstead. More generally, using cat into a pipe is less efficient than redirecting the file into stdin with<, likegrep foo < file.txt.