str[bits]

March 10, 2005

Redirection

Filed under: Linux

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.

Comments »

The URI to TrackBack this entry is: http://str.blogsome.com/2005/03/10/redirection/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>























Get free blog up and running in minutes with Blogsome | Theme designs available here