There I said it !

  • huf [he/him]
    link
    fedilink
    English
    6
    edit-2
    4 months ago

    zgrep . * should do the trick

    oh, there’s also zcat -f *

    • Morphit
      link
      fedilink
      24 months ago
             -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 [he/him]
        link
        fedilink
        English
        14 months 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.