Discussion Board
Go to the previous messageThere are no next messages
Current Forum: Homework 3 Forum
Date: Sat Sep 29 2001 8:57 pm
Author: Bortz, Andrew S. <abortz@andrew.cmu.edu>
Subject: Re: count("crop")

A 'grep -n " crop " ...', which returns 17 matches, shows that grep is missing the word crop on lines: 54, 2886, 5320, 9911, 19574. On those lines the word 'crop' is at the beginning or the end of the line, tricking out the grep query. A grep query that does work is 'grep -wc "crop" ...', which returns 22.
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
count("crop")      Katzhyman, Michael Zadok      Sat Sep 29 2001 8:44 pm       
Re: count("crop")      Bortz, Andrew S.      Sat Sep 29 2001 8:57 pm       

Back to previous screen