• 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
Re: Count word's occurences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Count word's occurences


  • Subject: Re: Count word's occurences
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 08 Sep 2014 16:15:36 +0200 (CEST)
  • Importance: Medium

Hi Yvan,
 
Retype the minus, don't copy and paste the version from Dan.
 
Best regards,jan
 
 
Op 8 september 2014 om 15:09 schreef "koenig.yvan" <email@hidden>:


Le 08/09/2014 à 14:48, Lanphier, Daniel A. < email@hidden> a écrit :

Try Os command “grep apple FILENAME |wc –w”

 

 Dan Lanphier 

 

 

Hello
 
I tried to apply your proposal with :
 
set leFichier to ( path to desktop as text) & "forGrep.txt"
set theKey to "apple"
 
do shell script "grep " & theKey & space & ( quoted form of POSIX path of leFichier) & " |wc –w"
 
Alas, I got :
 
error "wc: –w: open: No such file or directory" number 1
What may be wrong in my attempt ?
 
Yvan KOENIG (VALLAURIS, France) lundi 8 septembre 2014 15:09:10
 
 

 
 _______________________________________________
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 occurences
      • From: "koenig.yvan" <email@hidden>
References: 
 >Count word's occurences (From: Guido Tangorra <email@hidden>)
 >RE: Count word's occurences (From: "Lanphier, Daniel A." <email@hidden>)
 >Re: Count word's occurences (From: "koenig.yvan" <email@hidden>)

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