Created
September 5, 2016 21:03
-
-
Save danchristal/b6eba0833d5d57459de68c894153e2ac to your computer and use it in GitHub Desktop.
Unix Commands
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment