Re: text item delimiter
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