Joined: Mar. 2005
||Posted: Jan. 08 2008,19:46
Hmm. Weird. I got it working.
cat Events | tee >(grep -i "Linux" > test.txt)
is different then
cat Events >(grep -i "Linux" > test.txt)
This now works:
cat vlchelp | tee >(grep -i interface > test12.txt) >(grep -i log > test13.txt) | grep -i http
i.e. three outputs from one file read
Looking at how process substitution works (both forwards and backwards) I know why cat wasn't working.
cat Events >( grep -i "Linux" > test.txt)
cat Events /dev/fd/63
cat filename filename
Even though >() should be a pipe, but since cat wasn't meant to take an output file argument, just input file arguments.
I have no devfs mounted on /dev, especially since dsl has a static /dev, no?
Only devfs is usbdevfs