Quote:
Originally Posted by Straitsfan
Can you explain what you mean by 'delimited?'
I just copied the NeoOffice file (saved as .doc, a word format) to text edit (a .txt file) and the command worked (grep 'I am writing') but it printed the whole letter, or most of it -- which I'm guessing means that it found all the lines with any of the three words in the string and printed those lines. Is it possible to use 'grep' to find this particular sentence fragment and no other lines which don't contain this entire fragment?
|
Copying a .doc to something named .txt does NOT make it a text file.
I think this is the basis of your problem and misunderstanding.
Try doing a "Save As" and choose something that is Text (I don't know what Neo offers you, probably "Text", perhaps some variants).
Grep is designed to work on text files, not wordprocessor files.