Solutions to Lab 4 ------------------ For each question, we give the egrep command, followed by the result, and any comments. 1. egrep "happy" soap.txt | wc -l 1 So, the answer is "yes". 2. egrep "soap" soap.txt | wc -l 26 3. egrep "soap.*soap" soap.txt | wc -l 1 4. egrep "^[^a-z]" soap.txt | wc -l 83 5. egrep "[\?\.\!]$" soap.txt | wc -l 29 6. egrep "[[:space:]]+[0-9]+[[:space:]]+" soap.txt | wc -l 35 7. egrep "[[:space:]]+[0-9][0-9][[:space:]]+" soap.txt | wc -l 9 8. egrep "[[:space:]][A-Za-z]{9}[[:space:]]" soap.txt | wc -l 17 9. egrep "[[:space:]]j[A-Za-z]([A-Za-z][A-Za-z])*[[:space:]]" soap.txt this gives: bath-room shelf. In just 5 days here I have accumulated 24 little So, the answer is 'b'.