![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|