Say I have a large file with many rows and many columns. I\'d like to find out how many rows and columns I have using bash.
head -1 file.tsv |head -1 train.tsv |tr '\t' '\n' |wc -l
take the first line, change tabs (or you can use ',' instead of '\t' for commas), count the number of lines.