unix – count of columns in file January 30, 2023 by Tarik awk -F'|' '{print NF; exit}' stores.dat Just quit right after the first line.