• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OT: Count word's occurrences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT: Count word's occurrences


  • Subject: OT: Count word's occurrences
  • From: Omar K N <email@hidden>
  • Date: Mon, 08 Sep 2014 19:54:11 +0200


Hi Daniel, 


Where do I write the "set –x” ?

I don’t run a script, only line for line.

f. ex. grep Hedges FILENAME | wc -w

I have checked and I only have 1 occurrence of Hedges in the file, still I get 75 hits.

Same with "Hedges,”  75 hits.


There are no xsdfdHedgesfsfsfsg.

And this is the same with other words, I get a 0 if non-existent.


with best regards,
Omar K N
Stockholm, Sweden


On 08 Sep 2014, at 18:23, Lanphier, Daniel A. <email@hidden> wrote:

If you want to see the values grep is matching, place “set –x” at the top of script…

 _______________________________________________
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

  • Follow-Ups:
    • RE: Count word's occurrences
      • From: "Lanphier, Daniel A." <email@hidden>
    • Re: OT: Count word's occurrences
      • From: "koenig.yvan" <email@hidden>
References: 
 >OT: Count word's occurrences (From: Omar K N <email@hidden>)
 >RE: Count word's occurrences (From: "Lanphier, Daniel A." <email@hidden>)

  • Prev by Date: Re: Count word's occurences
  • Next by Date: Re: OT: Count word's occurrences
  • Previous by thread: RE: Count word's occurrences
  • Next by thread: Re: OT: Count word's occurrences
  • Index(es):
    • Date
    • Thread