ray at saturn.ucsc.edu (Ray Swartz) writes: >Any and all comments appreciated. Use sed: % sed -n '/pattern/p;//q' file It don't answer your question about pipes but it solves the original problem.