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.
If counting number of columns in the first is enough, try the following:
awk -F'\t' '{print NF; exit}' myBigFile.tsv
where \t is column delimiter.
\t