Skip to content

Instantly share code, notes, and snippets.

@toniher
Last active November 26, 2021 13:42
Show Gist options
  • Save toniher/0c3740c621686f3674da8e09faf833b0 to your computer and use it in GitHub Desktop.
Save toniher/0c3740c621686f3674da8e09faf833b0 to your computer and use it in GitHub Desktop.
Count how much space (in GB) is occupied by FASTA files in a directory from the command-line
echo "scale=2; $(fd --full-path -t f --regex '\.fa+$|\.fasta$' /nfs/db/ensembl -x du {}|datamash sum 1) / (1024^3)" | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment