First thing you are going to need to do is to learn vi. You will curse it until you learn it, then you will hate all other editors. Anyway, there is an Oreilly book called 'Learning VI' which is handy. Or, you can go to
vim's homepage, and poke around until you find their tutorial. It may be bundled with one of the vim packages, so I can't tell you exactly where to look. But, the tutorial takes about 20-30 minutes, and gives you some hands on experience using vi.
(I know, there are probably other editors out there you can find, like joe, pico, etc, etc), BUT.... If you want to be able to work on ANY unix system, you should at least know HOW to get around in vi, because that is pretty much the ONLY editor that transcends all flavors of unix)
So, once you have an editor, you can now edit a script:
vi myscript, and start typing in the following:
# Look for all files of any type, starting with my current location
# the grave (`) tells the shell to run this command and give the results
# back to the shell
# the find . - type f is a standard way to find all files of type f, and return them.
# then process each one of them one by one
for i in `find . -type f`
# start of processing block
do
# Now, get the string out of each file that starts with URL= and store
# it in a variable called url
# I forgot the trailing $i in the original example, to tell sed which file
# to operate on.
url=`sed -ne '^URL=\(.*\)/\1/p'`$i
# Now, let's create a file called bookmarks.html, and put the URL and it's
# associated name into the file.
# $url = the url from the file
# $i is the name of the file, which is how the link was listed in the Favorites list
# <a href="http:.....>Link Name</a> is standard html
echo "<a href=\"$url\">$file<\/a>" >> bookmarks.html
# end the block for a given file instance
done
Once you have the script created, then you need to make it executable. In unix land, this is done
via the chmod command: chmod +x myscript
Then, to execute it, cd to the directory where your Favorites are stored, and run the script:
/directory/where/myscript/is/located/myscript
And hopefully a bookmarks.html will appear. If there are typos/errors, then some level of debugging needs to occur.
If you have further questions, I would suggest that you learn about another VERY important
unix feature, which is the man pages.
man shell will tell you about the
for.... construct
man sed will tell you all about sed.
If you still don't understand, then post again.....