Closed alvanuffelen closed 1 year ago
Oh, it's not supported. A work around solution:
for rank in order family genus species; do
echo -ne “rank,$(csvtk cut -f $rank example.txt | csvtk uniq -f $rank | csvtk grep -r -v -p ^$ | csvtk nrows)\n";
done
Thanks, that worked!
Although, I had to change “rank
to "$rank
Prerequisites
csvtk version
Describe your issue
Is there a way to count unique text occurrences in a column without counting empty cells? example.txt