interdimensionalmeme@lemmy.ml to Linux@lemmy.ml · 6 months agozcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !message-squaremessage-square47linkfedilinkarrow-up181arrow-down111file-text
arrow-up170arrow-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 · 6 months agomessage-square47linkfedilinkfile-text
minus-squarehuf [he/him]@hexbear.netlinkfedilinkEnglisharrow-up1·6 months agoin that case, i’d prefer a ~/bin/zcat with the contents #!/bin/sh exec gzip -cdf "$@" this way, it’s exec’able, unlike an alias or shell function.
in that case, i’d prefer a
~/bin/zcat
with the contents#!/bin/sh exec gzip -cdf "$@"
this way, it’s exec’able, unlike an alias or shell function.