• 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: text item delimiter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: text item delimiter


  • Subject: RE: text item delimiter
  • From: "Ruby Madraswala" <email@hidden>
  • Date: Fri, 29 Apr 2005 13:12:48 -0400
  • Thread-topic: text item delimiter

Please bare with my ignorance, I have never used "sed" before -

sed-e 'y/abcdefghi/123456789/' " &
what does y stand for?

And

"-e 's/j/10/g' " & ¬
what does g stand for?

Thanks
Ruby

 -----Original Message-----
From: 	applescript-users-bounces+rubym=email@hidden [mailto:applescript-users-bounces+rubym=email@hidden]  On Behalf Of Gnarlodious Lists
Sent:	Friday, April 29, 2005 12:23 PM
To:	Applescript
Subject:	Re: text item delimiter

Entity Rob Stott spoke thus:

> ...theres almost certainly a better way that doesn't involve that many 'sed's
> for multiple digits but I'm not sure how.


do shell script "cat " & theFile & " | sed-e 'y/abcdefghi/123456789/' " & ¬
    "-e 's/j/10/g' " & ¬
    "-e 's/k/11/g' " & ¬
    "-e 's/l/12/g' " & ¬
    "-e 's/m/13/g' " & ¬
    "-e 's/n/14/g' " & ¬
    "-e 's/o/15/g' " & ¬
    "-e 's/p/16/g' " & ¬
    "-e 's/q/17/g' " & ¬
    "-e 's/r/18/g'  " & ¬
    "-e 's/s/19/g'  " & ¬
    "-e 's/t/20/g'  " & ¬
    "-e 's/u/21/g'  " & ¬
    "-e 's/v/22/g' " & ¬
    "-e 's/w/23/g' " & ¬
    "-e 's/x/24/g' " & ¬
    "-e 's/y/25/g' " & ¬
    "-e 's/z/26/g' "


-- Gnarlie


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: text item delimiter
      • From: Rob Stott <email@hidden>
    • Re: text item delimiter
      • From: "Mark J. Reed" <email@hidden>
    • Re: text item delimiter
      • From: "Steven D.Majewski" <email@hidden>
  • Prev by Date: Re: [OT] institute for backup trauma
  • Next by Date: Re: text item delimiter
  • Previous by thread: Re: text item delimiter
  • Next by thread: Re: text item delimiter
  • Index(es):
    • Date
    • Thread