The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
simple (probably) pipe question cleopard High Level Programming 3 04-24-2008 11:03 AM
Reference: WebObjects 5.4.1 Reference iBot UNIX and Linux RSS News 0 03-11-2008 06:50 PM
Reference Variable cchaloux Shell Programming and Scripting 18 10-03-2007 06:58 AM
pipe | question convenientstore Shell Programming and Scripting 12 06-09-2007 02:49 PM
ms sql command reference inquirer Windows & DOS: Issues & Discussions 2 08-21-2002 07:51 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-03-2006
Registered User
 

Join Date: Oct 2006
Posts: 2
Cool Question in reference to the pipe |

My question is can you use the pipe more than one time in the same command line? By the way I am new to UNIX. Thanks in advanced!
Reply With Quote
Forum Sponsor
  #2  
Old 10-03-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 989
Each process only has one standard output, so there's only one thing per process to pipe... You could do things like redirecting standard error into fifo files, but I wouldn't reccomend using standard error to carry data for performance and reliability reasons -- it's unbuffered, and supposed to be for errors, what happens when "cannot open file" appears in the middle of your data stream?
Reply With Quote
  #3  
Old 10-03-2006
Glenn Arndt's Avatar
Anomalous Lurker
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
I think (although I may be wrong) that the poster is asking if it is legal to do something like
Code:
grep "foo" | sort | uniq
If that's the case, then yes, you can do that.
Reply With Quote
  #4  
Old 10-03-2006
Registered User
 

Join Date: Oct 2006
Posts: 2
Thumbs up Thank you Glen

That's what I was asking. Thanks all for the quit response. I am so that I found this forum. I can already see its going to be a great help for me to learn more about UNIX. Once again Thank you!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0