|
|
Handle DOS Line Endings
In its raw form, the html has DOS line endings, which makes it hard to manipulate via UNIX tools. My preferred version of a script to display just the fortune part of the page would strip off the carriage return first, thus converting to UNIX line endings. Here's the script I would use for this purpose:
Handle DOS Line Endings
>In its raw form, the html has DOS line endings, which
Handle DOS Line Endings
You're right of course. What I should have said was that it "makes it difficult to handle with UNIX tools unless they are removed". I couldn't figure out at first why my matches weren't matching. All UNIX text editors have convenient means of deleting things; I just used sed to do it since I was already in sed.
-- Gary ~~~~ Line Printer paper is strongest at the perforations. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|