Last active
November 26, 2021 13:42
-
-
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
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
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