From 62927ffdaa5c2f9fc5ebad9db41e1d6fab319bcd Mon Sep 17 00:00:00 2001
From: tobyhodges <tbyhdgs@gmail.com>
Date: Wed, 16 Dec 2015 14:18:30 +0100
Subject: [PATCH] added a small example of using zgrep on gzipped files to the
 grep section.

---
 linux_intermediate/commandlinetools.rst | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/linux_intermediate/commandlinetools.rst b/linux_intermediate/commandlinetools.rst
index 7dac589..ea2ca63 100644
--- a/linux_intermediate/commandlinetools.rst
+++ b/linux_intermediate/commandlinetools.rst
@@ -157,6 +157,14 @@ List all files containing the term "Ensembl":
    P04062.txt
    P12931.txt
 
+Search a file compressed with ``gzip`` using ``zgrep``:
+
+ ::
+
+  # zgrep -c '@M34567' IlluminaReads.fastq.gz
+   34956188
+
+
 SED
 ---
 
-- 
GitLab