The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
.
google unix.com



UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
pipe grep command epro66 Shell Programming and Scripting 3 05-14-2009 07:17 PM
How can I use pipe command ? bintaleb UNIX for Dummies Questions & Answers 11 04-16-2007 04:16 PM
pipe command zomboo UNIX for Dummies Questions & Answers 1 10-31-2004 06:04 PM
ret val of a command in a pipe which is NOT the last one latze Shell Programming and Scripting 5 11-01-2002 10:32 AM
How to pipe command anonymous.nico UNIX for Advanced & Expert Users 4 03-20-2002 03:06 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-21-2009
rsampathy rsampathy is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 4
Tee with pipe command.

cat work.txt

Code:
M|324324|32424|3431
M|324324|32424|3431
N|324324|32426|3432
N|324324|32424|3434
M|324324|32424|3435


Code:
cat work.txt | tee $( grep '^M' > m.txt ) | $( grep '^N' > n.txt )


Code:
cehpny00:/home01/sr38632 $ cat m.txt
M|324324|32424|3431
M|324324|32424|3431
M|324324|32424|3435


Code:
cehpny00:/home01/sr38632 $ cat n.txt
no results.

Why grep '^N' not working. pls help me.

Last edited by vgersh99; 09-21-2009 at 11:56 AM.. Reason: code tags, PLEASE!
Bits Awarded / Charged to rsampathy for this Post
Date User Comment Amount
09-21-2009 vgersh99 added code tags - charged 3K bits -3,000
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0