# this works
# creates two.txt
(echo one;echo two;echo three;) | (
( grep two > two.txt )
)
# wamt this to create two files:
# two.txt containing "two" and three.txt containing "three"
# Both files get created, but three.txt is empty
# is there a way to do this?
(echo one;echo two;echo three;) | (
( grep two > two.txt )
( grep three > three.txt )
)
Thanks for helping me learn unix scripting!