grep/awk stdin Limitations?
问题 I looked around, but I can't find anyone who has already answered this. I am writing a bash script which will read 6 different csv files, and count how many lines in all the files together have certain tags in them. (it's a contact list database - and there are tags for business or private email address) Here is an example of the code I have written: ### First Scan - Business emails ### bus="$(awk 'BEGIN {FS = ","}{print $27}' FILE*full* | grep -c "Business")" echo "No. of Business Accounts: