mailserv.sh 318 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. # File: mailserv.sh
  3. # Name: D.Saravanan
  4. # Date: 05/01/2021
  5. # Script to count the mail services from a file
  6. echo -e "\nInput file name is $1"
  7. services="hotmail.com gmail.com microsoft.com verizon.net yahoo.com"
  8. for service in $services; do
  9. echo "Count of $service: $(grep -cw $service $1)"
  10. done