Last active
August 27, 2020 15:47
-
-
Save l-modolo/11395468 to your computer and use it in GitHub Desktop.
base_number_fqgz.sh
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
#!/bin/sh | |
# count number of base in a fastq.gz | |
(gzip -dc $0) | awk 'NR%4 == 2 {basenumber += length($0)} END {print basenumber}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment