|
![](/i/fill.gif) |
Ken <tyl### [at] pacbell net> wrote:
: Bear in mind that when I post these in html format it keeps intact all
: of my bookmark descriptions that took a considerable amount of time to add
: to each link. If I were to simply copy and past the links as plain text
: I would lose these valuable link discriptions. I type too slow and do
: not really feel inspired to type in 500+ new descriptions thank you.
If you are using unix you can use the sed command to automatically
reformat all those 500+ lines. For example suppose that the original file
(let's name it 'links.html') has the following lines:
<p><a href="http://some.place/some/file.html">Very cool page!</a>
<p><a href="http://other.place/ugly/file.html">This page sux.</a>
Now the command:
sed 's/<p><a href="//;s/">/: /;s/<\/a>//' links.html
prints the following lines:
http://some.place/some/file.html: Very cool page!
http://other.place/ugly/file.html: This page sux.
This way you could automatically reformat any amount of lines in seconds.
Of course, if you are not using unix, you have a problem... :)
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |