[EMAIL PROTECTED] wrote: > The problem: I need to count the number of "bar's" between the "foo's".
sed '1,/^foo$/d;/^foo$/,$d' < file | grep -c bar paul _______________________________________________ help-gnu-utils mailing list help-gnu-utils@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-utils