• 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
sed: escaping UNIX newlines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sed: escaping UNIX newlines


  • Subject: sed: escaping UNIX newlines
  • From: Gnarlodious <email@hidden>
  • Date: Sun, 18 Jan 2004 17:03:48 -0700

First off I want to thank those who helped me on this script, Chris Janton,
BJ Terry and Michael Terry for excellent pointers.
I've learned a lot, here is the script so far:
<http://www.Gnarlodious.com/OSX/AppleScript/iTunes-iPage.scpt.html>

If you copy and paste this script to run it erase the international
character block as the export to HTML mangles them.

The problem is that I need to make onelines out of all cells to use the sort
command, for example any newline followed by <td> needs to be changed to
only <td>. This leaves a newline before the <tr> so sort can work its magic
and cw can count lines.

As you can see I eradicated all newlines with tr and attempted to reinsert
them with sed but I don't know if I'm doing it right. Is it an Applescript
issue or can't sed do this?

-- Gnarlie
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: sed: escaping UNIX newlines
      • From: BJ Terry <email@hidden>
  • Prev by Date: Subscribing to a calendar
  • Next by Date: Re: sed: escaping UNIX newlines
  • Previous by thread: Re: Subscribing to a calendar
  • Next by thread: Re: sed: escaping UNIX newlines
  • Index(es):
    • Date
    • Thread