Linux Rocks ! wrote:
: Note the s character at the end. It makes the whole thing
: work even if the tag spans multiple lines.
Oops. I forgot -- to read the whole file into the string, you need
this at the beginning of the perl script. See the perlvar man page
for details.
BEGIN {
I have a copy of a web site. Nearly every link in it is an absolute
hard link, e.g., href=http://www.example.com/path/file.html; .
It is all static HTML.
I got about 2/3 of the way through writing a perl script to change all
the links to relative form, so I can browse the site directly from
On Monday 29 April 2002 09:40, Bob Miller wrote:
So, who knows of a tool that will scan a directory of files (or even
a single file) and change all href and img src tags from absolute to
relative?
These do it on the fly (while pulling in a site):
getleft -
You can use wget options, like --convert-links, --base-url, and
force-html.
At 09:54 AM 4/29/02 Mark Bigler [EMAIL PROTECTED] wrote:
On Monday 29 April 2002 09:40, Bob Miller wrote:
So, who knows of a tool that will scan a directory of files (or even
a single file) and change all href and
Sometime just before Monday 29 April 2002 01:43 pm Ralph Zeller Wrote
about:[EUG-LUG:2474] Re: tool to convert links from absolute to relative?
I did download the httrack, and tried to compile... but it didnt like me, and
it doesnt really do what I want (I just want to convert text in
I installed Redmond Linux over the weekend and found that it has a very nice
install, quite easy (except for the advanced disk partitioning section( i
have special partitioning needs)). I especially liked the multi-tasking
installer. It was installing packages midway through the install, with
So... This is what I finally ended up with:
find ./*.html -type f | xargs perl -p -i -e \ 'BEGIN {undef $/}
s/alt\=\([^\]*)\/alt=$1 title=$1/gis'
It only looks in the cwd for html files, adds title=WhatEverIsInAltTag to
each img line. It doesnt check to see if the alt tag exists... (I couldnt
Thanks
I tried konsole and I found is you still have to use your mouse to use the
tabs. Unless there is some to get around this. I would really like to get
away from using my mouse when I'm doing things on the keyboard. I like
programs which are well thought out and have hot keys you can