[techtalk] help with sorting text in a file

Ian Phillips ianp at tibco.com
Sun May 14 14:05:22 EST 2000


> string "QAA."  Tried doing a grep, but I got the
> entire line again, not just the portion of it that
> contained "QAA."  Argh.  The frustrating thing is I

Is this what you want:

bash-2.02$ for i in `cat file_name_to_search`;do
> echo $i | grep QAA
> done

Yours,
Ian.

-- 
#ifndef  __COMMON_SENSE__ | Ian Phillips
#include <std_disclaimer> | TIBCO Software Inc.
#endif                    | www.tibco.com





More information about the Techtalk mailing list