Skip to content

Tuesday, December 1st, 2009

New Linux User

EXPLAIN: Piping Commands Together in GNU/Linux

April 27, 2006 by Jon  
Filed under Explanation

I’ve discussed redirection which is the process of telling a command line application to either write its output or take its input from a stream other than what it normally would. The ls command normally writes its output to the screen, for example, but by using redirection you can redirect that output to a file instead.

The next logical step from redirection is piping. Since we’ve established that most command line applications can have their input and output redirected, it stands to reason that those commands don’t actually care where their input comes from or where their output goes. This opens up the possibility of telling an application to use the output from one application as its input. Chaining applications together like this is accomplished using the pip ‘|’ symbol.

I sat down to write this entry and then realized I had already done so many months ago. So, instead of copying myself, read my original entry on piping here.

  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google
  • TwitThis
  • Reddit
  • Yahoo! Buzz
  • Slashdot
  • E-mail this story to a friend!

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


About Us | Advertise with us | Blog for EveryJoe | Privacy Policy | Terms of Use
Get This Theme | Sitemap


All content is Copyright © 2005-2009 b5media. All rights reserved.