Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread Larry Ploetz
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

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread Edmund R. MacKenty
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 >

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread McKown, John
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

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread Edmund R. MacKenty
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

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread Larry Ploetz
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

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread McKown, John
; 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: > &

Re: BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread Larry Ploetz
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

BASH question - may even be advanced - pipe stdout to 2 or more processes.

2011-02-09 Thread McKown, John
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