Skip to content

Instantly share code, notes, and snippets.

@l-modolo
Last active August 27, 2020 15:47
Show Gist options
  • Save l-modolo/11395468 to your computer and use it in GitHub Desktop.
Save l-modolo/11395468 to your computer and use it in GitHub Desktop.
base_number_fqgz.sh
#!/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