interdimensionalmeme to Linux · 13 hours agozcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !message-squaremessage-square11fedilinkarrow-up160arrow-down15file-text
arrow-up155arrow-down1message-squarezcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !interdimensionalmeme to Linux · 13 hours agomessage-square11fedilinkfile-text
minus-squareMonkderViertelinkfedilinkarrow-up10·edit-25 hours agoThat’s really bad. zcat ./* 2>/dev/null || cat ./* does the same. Btw, don’t parse ls. Use find |while read -r instead.
minus-squareallywilsonlinkfedilinkarrow-up2·1 hour agoWon’t this cause cat to iterate through all files in the cwd once zcat encounters an issue, instead of just the specific file?
That’s really bad.
zcat ./* 2>/dev/null || cat ./*
does the same.Btw, don’t parse ls. Use
find |while read -r
instead.Won’t this cause cat to iterate through all files in the cwd once zcat encounters an issue, instead of just the specific file?