From: Marc Perkel <mperkel@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: tee question [OT]
Date: Sat, 5 Apr 2008 21:10:13 -0700 (PDT) [thread overview]
Message-ID: <96637.86039.qm@web52504.mail.re2.yahoo.com> (raw)
Just wondering if any of you experts know how to do
this. I want to take an imput stream and produce two
output streams to feed into two different pipes.
echo "1 2 3 4 5" | tee ...
| cut -d \ -f -4 >> file1.txt
| cut -d \ -f 1,2,5- >> file2.txt
The idea being that file1.txt would get "1 2 3 4" and
file2.txt would get "1 2 5"
How do I do it? Tee wants a file as an argument and I
want that file to be a process. Anyhow - I'm not very
smart.
Thanks in advance.
Marc Perkel
Junk Email Filter dot com
http://www.junkemailfilter.com
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
next reply other threads:[~2008-04-06 4:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-06 4:10 Marc Perkel [this message]
2008-04-06 4:30 ` Jan Engelhardt
2008-04-06 4:37 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=96637.86039.qm@web52504.mail.re2.yahoo.com \
--to=mperkel@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®