2014-04-23

Compilation of useful commands when dealing with large text files, such as fasta files

# Get line nr. XY from a file in a fast way via sed
sed -n '99999p' myfile.fasta

# Get number of sequences in a fasta file
grep -c '>' myfile.fasta


No comments:

Post a Comment