The Pipe

Wednesday, Apr 18, 2018 | 1 minute read | Updated at Wednesday, Apr 18, 2018

@
The Pipe

The alternate symbol (vertical bar) on the backslash key, on the standard US keyboard: is known as the pipe.

i’m sure more of you didnt know it was called that.

And I can bet most people, have not used it before.

If you are a developer or someone on the unix,linux,macOS side of life,or spend most of your time in the terminal or command-line, you are not most people.

The pipe serves a form of redirection, that channels the output of a command,script or program as input for another set of commands, scripts or program.

Eg.
command 1's output | command 2 as input
cat text | wc -l
The above example, uses the cat command on a text document and pipes the result of that instruction into the word count wc command with the -l argument to show number of lines.

Usage is not limited too
ps aux | grep 'root'| less
One can daisy chain more of these pipes together to your hearts content.

Thats it for now.

© 2025 Reveries

🌱 Powered by Hugo with theme Dream.

Me

Self Introduction

Passionate about people & technology. With a plethora of experience managing both people and technology. I am currently a Technical Officer with the Communications Division of CSIR - Institute for Scientific and Technological Information. Here, I am responsible for transforming research outputs into software, tools, equipments and communication systems as tools for national development.

I am BIG about community and have spent the better part of the last decade; growing and managing various tech communities in Ghana. Most recent being the Google Developer Group (GDG). I ASPIRE to INSPIRE.

I like to dabble in a lot of technology related things; from code to Rpi’s.