RE: Count word's occurrences
RE: Count word's occurrences
- Subject: RE: Count word's occurrences
- From: "Lanphier, Daniel A." <email@hidden>
- Date: Mon, 08 Sep 2014 16:17:40 +0000
- Thread-topic: Count word's occurrences
Grep is a pattern search ….. if the pattern jkfsdlkHedgeskdjs exist that counts as a pattern match.
If you are looking for only Hedges you might try something like grep “ Hedges “
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/grep.1.html
Dan Lanphier
Systems Engineer • Systems Operations
w: 402.498.1567 |
m: 402.680.0613
|
This message is privileged and confidential and is intended only for the use of the addressee. Unauthorized use of this message is strictly prohibited. If you
received this transmission in error, please immediately contact the sender and destroy the message. Thank you.
|
From: applescript-users-bounces+daniel.lanphier=email@hidden [mailto:applescript-users-bounces+daniel.lanphier=email@hidden]
On Behalf Of Omar K N
Sent: Monday, September 8, 2014 11:11 AM
To: email@hidden
Subject: OT: Count word's occurrences
Hi,
When running: grep Hedges FILENAME |wc -w on a file here I get very many hits than there are real occurrences in the file?!?
For example “Hedges” is only once in the file NN , but I get 75 hits! How can this be?
Try Os command “grep apple FILENAME |wc –w”
Dan Lanphier
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden