• 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: "Mark J. Reed" <email@hidden>
  • Date: Fri, 29 Apr 2005 14:08:14 -0400

On 4/29/05, Ruby Madraswala <email@hidden> wrote:
Please bare with my ignorance, I have never used "sed" before -

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


"transform".  Honestly, I don't know why "y" was chosen.  The command-line tool that does  nothing but what "sed -e y" does is called "tr".

 

And

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

The "s" stands for "substitute", though you didn't ask.  The "g" stands for "globally".  Without the "g", only the first j on each line would be replaced; with the "g", all 'j's are replaced on each line.

So, given:

         a. this is an example item in an outline

Doing s/a/1/ will give you this:

         1. this is an example item in an outline

While s/a/1/g will give you this:

         1. this is 1n ex1mple item in 1n outline






--
Mark J. Reed <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

References: 
 >RE: text item delimiter (From: "Ruby Madraswala" <email@hidden>)

  • Prev by Date: Re: Newbie with an easy question
  • Next by Date: Re: Image upload via FTP
  • Previous by thread: Re: text item delimiter
  • Next by thread: Re: text item delimiter
  • Index(es):
    • Date
    • Thread