Skip to content

Instantly share code, notes, and snippets.

@YKV
Last active June 27, 2016 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YKV/c2921bba75a3d5224753dd445d6d6a13 to your computer and use it in GitHub Desktop.
Save YKV/c2921bba75a3d5224753dd445d6d6a13 to your computer and use it in GitHub Desktop.
//Write a command that will output the number of times the cat command was used previously
history | grep -o "cat" | wc -l
//Write a command to output a count of all words in the unix dictionary file that begin with the letter "a"
grep "^a" /usr/share/dict/words | wc -l
//Return all the words in the dictionary that start with "a" and end with "s"
cat /usr/share/dict/words | grep "^a" | grep "s$"
//Using one unix command, download & save the following page:https://www.lighthouselabs.ca/index.html
curl -o https://www.lighthouselabs.ca/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment