Created
February 14, 2025 18:54
-
-
Save fabiolimace/f631a8fc96e067586438911a20a40ed4 to your computer and use it in GitHub Desktop.
Gzip tools like zcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
zcat "$1" | less |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for file in "$@"; do echo -e "$(zcat "$file" | wc) $file"; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Examples:
Notes:
zless
.gzip
package.