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 in bash.
>       - MacK.

Which is vaguely related to the perl "mentality" of never making a system call 
and always finding
and using, or writing your own, module (that also doesn't make a system call). 
I'm sure perl has
tee-like functions (actually, I remember a perl script named "tee2" that did 
write to multiple
output files), versus the more traditional (?) unix mentality of using many 
small,
does-one-function-and-does-it-well utilities available in the environment, tied 
together perhaps
with a shell script. I prefer the latter, but I can understand the portability 
issues and the
perl-only solution to them.

- Larry

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to