Skip to content

Instantly share code, notes, and snippets.

@Quar
Last active October 20, 2017 22:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Quar/b154ec56ca79489e7873667dad4f4ac1 to your computer and use it in GitHub Desktop.
Save Quar/b154ec56ca79489e7873667dad4f4ac1 to your computer and use it in GitHub Desktop.
common tools
# view contents inside tar.gz
curl -s https://www.x.org/releases/individual/util/util-macros-1.19.1.tar.gz | tar -tf -
# view file inside tar.gz
curl -s https://www.x.org/releases/individual/util/util-macros-1.19.1.tar.gz | tar --strip-components 1 -xOf - util-macros-1.19.1/README
# search file using glob-pattern tcsh(1)
curl -s https://www.x.org/releases/individual/util/util-macros-1.19.1.tar.gz | tar --strip-components 1 -xOf - '**/README'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment