This script looks for all files starting with protected_WAG_CNVR_FY26_Immz_2yr_1Vax_Ages and print row counts in each file
for f in $(ls -1 | grep 'protected_WAG_CNVR_FY26_Immz_2yr_1Vax_Ages');do
count=$(wc -l < "$f")
echo "$f : $count"
doneThe output :
protected_WAG_CNVR_FY26_Immz_2yr_1Vax_Ages24-49_USH.dat : 32668
protected_WAG_CNVR_FY26_Immz_2yr_1Vax_Ages24-49.dat : 1966142
protected_WAG_CNVR_FY26_Immz_2yr_1Vax_Ages50-64_USH.dat : 43920
protected_WAG_CNVR_FY26_Immz_2yr_1Vax_Ages50-64.dat : 2393405
protected_WAG_CNVR_FY26_Immz_2yr_1Vax_Ages65+_USH.dat : 78427
protected_WAG_CNVR_FY26_Immz_2yr_1Vax_Ages65+.dat : 5836725