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.
awk 'BEGIN{FS=","}END{print "COLUMN NO: "NF " ROWS NO: "NR}' file
You can use any delimiter as field separator and can find numbers of ROWS and columns