Skip to content

Instantly share code, notes, and snippets.

@IlkhamGaysin
Last active June 4, 2021 12:37
Show Gist options
  • Save IlkhamGaysin/ee54fd0af20f9f5002ef2e6010866240 to your computer and use it in GitHub Desktop.
Save IlkhamGaysin/ee54fd0af20f9f5002ef2e6010866240 to your computer and use it in GitHub Desktop.
Concatenate all tsv.gz files info one

Problem

Usually logs files are stored in butches with tsv.gz file extention. Often we need to search trough these logs as they are the one file.

Solution

we can unzip and concatenate the files into one file and grep over it.

  gunzip -c *.gz > alllogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment