Last active
September 19, 2019 09:23
-
-
Save bougui505/529263bb1e258811f8baf7c5d319d3f7 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env zsh | |
# -*- coding: UTF8 -*- | |
# Author: Guillaume Bouvier -- guillaume.bouvier@pasteur.fr | |
# https://research.pasteur.fr/en/member/guillaume-bouvier/ | |
# 2019-09-19 11:04:47 (UTC+0200) | |
STRING=$1 | |
awk -v STRING=$STRING '{ | |
if ($0~STRING){ | |
doprint=1 | |
}; | |
if (doprint==1){ | |
print $0 | |
} | |
}' - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment