it seems that alot of the older threads and info are gone on this new system? If im doing a search on google, i seem to get a msg saying " webpage could not be found" alot of the time when i click on the link. Any fix for this?
I showed how to get round that here - take note of the thread number Google finds.
[/URL]
No need to do it by hand. The key is the thread number. This very quick and dirty effort converts an old forum link to one that works now (If you can do it elegantly, probably with regex, please post) ---
S="${OLD-URL##*/}"; read num1 num2 num3 <<<${S//[^0-9]/ }
NEW="www.aussiefrogs.com/forum/index.php?threads/"$num1
This requires no final suffix / in the URL.
Sorry i missed that one thanksI showed how to get round that here - take note of the thread number Google finds.
[/URL]
Hi Seasink,No need to do it by hand. The key is the thread number. This very quick and dirty effort converts an old forum link to one that works now (If you can do it elegantly, probably with regex, please post) ---
S="${OLD-URL##*/}"; read num1 num2 num3 <<<${S//[^0-9]/ }
NEW="www.aussiefrogs.com/forum/index.php?threads/"$num1
This requires no final suffix / in the URL.
#!/bin/bash
#Converts old Aussiefrogs URL (as 1st arg) to new forum URL
if [ $# -lt 1 ]; then echo "Missing old AF forum URL argument"
else
S="${1##*/}" #filename from arg
read num1 num2 num3 <<<${S//[^0-9]/ } # thread number string
echo "www.aussiefrogs.com/forum/index.php?threads/"$num1
fi
exit