XNIU’s space

July 27, 2007

Learning UNIX commands – pipe

Filed under: Tech — xniu @ 10:53 am
[Preface] Since I started using VIM and experienced the impressive efficiency, I gradually agree that UNIX is more efficient than WIN and truly targeted for “solving problems”. So it’s not surprising that I intend to explore more UNIX utilities. Here in this post I’d take some notes for learning UNIX commands, hopefully this could be also helpful for you.

Actually “pipe” is not a explicit command, it’s a very powerful mechanism in UNIX. It enables different commands, programs to communicate with each other and collaborate to accomplish a big task.

Pipe is used to redirect input/output and channel streams of data to different places. It just behaves as implied by its literal meaning. Use “|” to send data stream which is outputed by a command to another command as input; use “>” to redirect the output to a file; use “<” to take data from a file and send it to a command as input. Pipes get to be extremely powerful when being used to enable a series of commands to work together.

For details see below:

http://www.caf?.ac.UK/psych/Culling/pipes.html.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: