Redirection
grep string filename > newfile
Redirects the output of the above grep command to a file ‘newfile’.
grep string filename >> existfile
Appends the output of the grep command to the end of ‘existfile’.
The redirection directives, > and >> can be used on the output of most commands
to direct their output to a file.
