• 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: shell script and text manipulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: shell script and text manipulation


  • Subject: RE: shell script and text manipulation
  • From: "Reese, Stevan" <email@hidden>
  • Date: Wed, 23 Feb 2005 06:22:15 -0800
  • Thread-topic: shell script and text manipulation

This should help you get started
http://orca.phys.uvic.ca/rsocs/wirth/faq/awk-oneliners.html
http://www.student.northpark.edu/pemente/sed/sed1line.txt

Here is an example;
change the text in a variable from somename.xls to somename.txt
set xlsTFile to (do shell script "echo " & xlsTFile & "|sed s-'.xls'-'.txt'-g")

stevan


-----Original Message-----
From: applescript-users-bounces+sreese=email@hidden on behalf of Christian Vinaa
Sent: Wed 2/23/2005 2:13 AM
To: email@hidden
Subject: shell script and text manipulation

the various input from this list regarding shell scripts made me wonder

ok  shell scripts arae good for    CURL  and DATE  stuff

but what about text manipulation ?

where fx  you would normally write:

set word 1 of paragraph 1 to myWord

or

finding (myWord)  and replacing with (myOtherWord)

(just the jist of the script - not actually working)

--
Christian Vinaa

email@hidden

...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
 _______________________________________________
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

  • Prev by Date: Dock Q...
  • Next by Date: Re: Quark 6.5 Page Name of Group Items
  • Previous by thread: Re: shell script and text manipulation
  • Next by thread: Re: shell script and text manipulation
  • Index(es):
    • Date
    • Thread