One liners, snippets and small scripts
Often I use one liners or small scripts for useful task but I keep forgetting about those. So I’ll just put them here for future reference.
Count number occurrences in a column/field. In this case, how many lines in a GFF3 file exist for each chromosome.
This can be further refined and count only genes per chromosome using a simple grep: