this post was submitted on 18 Dec 2024
69 points (87.1% liked)

Linux

48665 readers
519 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

There I said it !

you are viewing a single comment's thread
view the rest of the comments
[–] huf@hexbear.net 6 points 3 days ago* (last edited 3 days ago) (1 children)

zgrep . * should do the trick

oh, there's also zcat -f *

[–] Morphit@feddit.uk 2 points 2 days ago (1 children)
       -f --force
              If the input data is not in a format recognized by gzip, and if the option --stdout is also given,
              copy the input data without change to the standard output: let zcat behave as cat.

I don't know why this isn't the top comment. I guess there might be some scenario where you'd want to know about non-gzip files where you don't expect them so changing the defaults would probably cause some subtle breakage. For shell use though, just an alias could be used; alias zcat=gzip -cdf

[–] huf@hexbear.net 1 points 2 days ago

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.