I have a homework assignment where I have a file that is a large list of words.
I have to copy into a new file all the words starting with c
and name it cwords
.
I can see a list of the words by doing cat words | grep ^c
and I can copy the entire list to a file by doing cp words cwords
but what do I type to get just the words starting with c
copied over?