adilsonrapozojr
1/7/2019 - 2:52 PM

Count specific character on file

cat file | awk -F\; '{print NF-1}'

sed 's/[^;]//g' file | awk '{ print length }'