chaostic
Group: Members
Posts: 328
Joined: Mar. 2005 |
|
Posted: Jan. 08 2008,19:46 |
|
Hmm. Weird. I got it working. Somehow 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
Edit: Looking at how process substitution works (both forwards and backwards) I know why cat wasn't working. cat Events >( grep -i "Linux" > test.txt) Is actually cat Events /dev/fd/63 is 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.
Edit2:
I have no devfs mounted on /dev, especially since dsl has a static /dev, no? Only devfs is usbdevfs
|