This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write a command that will output the number of times the cat command was used previously | |
history | grep -c "cat" | |
Write a command to output a count of all words in the unix dictionary file that begin with the letter "a" | |
cat /usr/share/dict/words | grep -c "^a" | |
Return all the words in the dictionary that start with "a" and end with "s" | |
cat /usr/share/dict/words | grep -E '^a' | grep -E 's$' -c |