A pipe is represented by the | character. It uses the output of the command to the left of it as the input to the command on the right of it.
Example: Say you want to look at all of the processes on your box. You'd run:
but that's usually a page or more of information, and you want to look at them page-by-page.
Well, the "more" command allows you to look at information page-by-page. We can utilize the pipe to send the output of the "ps -eaf" command into the "more" command and look at all the processes page-by-page. Lookit:
You can string those things together for a mile if you want. You're not limited to just one pipe on the command line.
What if I wanted to view all the oracle processes? I would execute:
But what if that output was over a page long and I wanted to view them page-by-page. The following command illustrates the ability to have more than one pipe in a single command:
Thanks for your definition and examples. The symbol/character | used to separate a string of UNIX commands is the actual pipe? However, in order for it to be considered a Pipe is more than one command line needed?
Hi All,
I'm creating a program which reads millions of bytes from the PIPE and do some processing. As the data is more, the idea is to read the pipe parallely.
Sun Solaris 8
See the code below:
#!/bin/sh
MAXTHREAD=30
awk '{print $1}' metadata.csv > nvpipe &
while
do
... (3 Replies)
Trying to run this command:
find /Volumes/Archive/ -type f -name "Icon"
and get
/Volumes/Archive//New Business and Marketing/2010 /Creative/Image Library/Stuff for Sean/Cafe Heineken/logo_Café Heineken_03.jpg: No such file or directory
due to the accent on the filename. Is there a way around... (2 Replies)
Is FreeBSD and OpenBSD considered Unix? What O.S does Most of the forum members use? How popular are Licensed Unix operating systems for home users?
Additionally I thought Linux was a Minux fork and BSD was a Unix fork.
Thanks in ... (7 Replies)
Hi,
Can someone help me with the meaning of each term in the below command in unix:
stty-aRegds,
I have searched google for a lot for this, but didnt get any success in this.
Kunwar (2 Replies)
I am pretty new to UNIX. My client has a requirement where in a directory we have some files with somewhat similar name
like test_XX.txt, test_XY.txt, test_XZ.txt, test_ZZ.txt, test_ZY.txt, test_ZX.txt, test_YY.txt......Out of these files
few files have 0 bytes. Is there a way where we can go... (7 Replies)
Hi All,
I have an input_file below and i would like to use Perl to search for the term "aaa" and output the 3rd term in the same row as "aaa".For Example, i want to search for the term "ddd" and would want the code to ouput the 3rd term in the same row which is "fff". Can somebody help ?
... (28 Replies)
I currently stuck on a simple program that requires unix pipe. I'm have never programmed with unix pipe before, so if anyone can point me to the right different will be greatly appreciated!
I'm suppose to write a program that the parent spawns many child processes and each of the child process... (1 Reply)
I would like to know if the following can be done.
route output from an sql select directly to a pipe and compress it at the same time.
regards
Albert (2 Replies)
Hi ,
I want to understand how the PIPE works in unix . Precisely what I am doing is this .
1. Creating a Named PIPE with the command
mknod sqlldr.dat p
2. Directing a file output to the PIPE file in the background
cat abc > sqlldr.dat
3.SQL Loader in oracle is... (5 Replies)
hi floks !
i'd like to know how can i transmete a character or a string from my source code to a term and make it interpret or un by the shell wich is running in my term.
I'd like to create a Term from my code (and get its file descriptor) and then transmete each char typed on the keyboard to... (1 Reply)