allywilson@lemmy.mltoLinux@lemmy.ml•zcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !
15·
16 hours agoYeah, it’s a pain. Leads to bad one liners:
for i in $(ls); do zcat $i || cat $i; done
Yeah, it’s a pain. Leads to bad one liners:
for i in $(ls); do zcat $i || cat $i; done
Won’t this cause cat to iterate through all files in the cwd once zcat encounters an issue, instead of just the specific file?