On 2/9/11 1:08 PM, Edmund R. MacKenty wrote:
>
> Doh! I should have remembered that. So the functions I wrote could have been
> implemented as:
>
> Ntee() {
> tee "$@" >/dev/null
> }
>
> Just goes to show that there's usually several ways to do anything in Linux.
> I focused on doing it entirely
On Wednesday, February 09, 2011 03:47:38 pm you wrote:
> On 2/9/11 12:40 PM, McKown, John wrote:
> > tee can output to multiple files? The man page implies only a single
> > file.
>
> Hmmm...maybe you need a new enough tee also:
>
> SYNOPSIS
>tee [OPTION]... [FILE]...
>
> DESCRIPTION
>
e-
> From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On
> Behalf Of Larry Ploetz
> Sent: Wednesday, February 09, 2011 2:48 PM
> To: LINUX-390@VM.MARIST.EDU
> Subject: Re: BASH question - may even be advanced - pipe
> stdout to 2 or more processes.
>
> On 2/9/11
On Wednesday, February 09, 2011 03:19:03 pm you wrote:
> Yeah, it sound weird. What I have is 72 files containing a lot of secuity
> data from our z/OS RACF system. To save space, all these files are
> bzip2'ed - each individually. I am writing some Perl scripts to process
> this data. The Perl scr
On 2/9/11 12:40 PM, McKown, John wrote:
> tee can output to multiple files? The man page implies only a single file.
Hmmm...maybe you need a new enough tee also:
SYNOPSIS
tee [OPTION]... [FILE]...
DESCRIPTION
Copy standard input to each FILE, and also to standard output.
> So I g
; From: Larry Ploetz [mailto:la...@stanford.edu]
> Sent: Wednesday, February 09, 2011 2:31 PM
> To: Linux on 390 Port
> Cc: McKown, John
> Subject: Re: BASH question - may even be advanced - pipe
> stdout to 2 or more processes.
>
> If you have a new enough bash, you can:
>
&
If you have a new enough bash, you can:
bzcat data*bz2 | tee >(process1) >(process2) >(process3) ... | processn
but the stdout from process1..n get intermixed unless redirected to files.
(Tom Meyer taught me that!)
- Larry
On 2/9/11 12:19 PM, McKown, John wrote:
> Yeah, it sound weird. What I
Yeah, it sound weird. What I have is 72 files containing a lot of secuity data
from our z/OS RACF system. To save space, all these files are bzip2'ed - each
individually. I am writing some Perl scripts to process this data. The Perl
script basically reformats the data in such a way that I can pu