interdimensionalmeme@lemmy.ml to Linux@lemmy.ml · 4 days agozcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !message-squaremessage-square30fedilinkarrow-up180arrow-down111file-text
arrow-up169arrow-down1message-squarezcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !interdimensionalmeme@lemmy.ml to Linux@lemmy.ml · 4 days agomessage-square30fedilinkfile-text
minus-squareSteveTech@programming.devlinkfedilinkEnglisharrow-up8·edit-23 days agoIt’s part of GNU Gzip, and zcat is basically just a shell script that runs exec gzip -cd "$@" meaning you can actually just do cat /usr/bin/zcat to get the source.
It’s part of GNU Gzip, and zcat is basically just a shell script that runs
exec gzip -cd "$@"
meaning you can actually just docat /usr/bin/zcat
to get the source.Or even
zcat -f /usr/bin/zcat