sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #24916
Re: Hardcore (ba)sh spørgsmål.
On Fri, 14 Jul 2000, Henrik Brix Andersen wrote:
> 'diff -Naur dir1/ dir2/ | gzip -c > patch.gz'
>
> Hvad gør jeg, hvis både ønsker at pipe stdout fra diff videre til en
> anden cmd, og samtidigt se diff output, mens programmet kører?
Process substition:
diff -Naur dir1/ dir2/ | tee >(gzip -c > patch.gz)
skulle få dig flyvende.
Virker _kun_ under bash, AFAIK.
Mads
--
Mads Bondo Dydensborg. madsdyd@xxxxxxxxxxxx
I don't even consider working for MS Shops, or shops with extensive MS
deployment anymore. These companies are rape victims, and too self-abusive to
get away. Why waste time trying to help those who will not help themselves?
- David C. Manchester
References