sed: escaping UNIX newlines
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.