Write a command that will output the number of times the cat command was used previously:

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 "^a"

Return all the words in the dictionary that start with "a" and end with "s":

cat /usr/share/dict/words | grep "^a[a-z]*s$"

Using one unix command, download & save the following page: www.lighthouselabs.ca/index.html:

curl -0 "www.lighthouselabs.ca/index.html"

No comments:

Post a Comment