Skip to content

Instantly share code, notes, and snippets.

@h1ros
Created February 3, 2020 16:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h1ros/6c519853f9ee07656db895ff9abca2f0 to your computer and use it in GitHub Desktop.
Save h1ros/6c519853f9ee07656db895ff9abca2f0 to your computer and use it in GitHub Desktop.
zcat for 7zip
#!/bin/bash
# copy this file into /bin/zcat to a file called /bin/7zcat
PATH=${GZIP_BINDIR-'/bin'}:$PATH
exec 7z e -so -bd "$@" 2>/dev/null | cat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment