Chop and replace method??

Nancy Belle belle at antennex.com
Sat Apr 4 17:13:07 UTC 2015


Hi freebsd-questions

I have a really big problem to solve and save hours & hours of time to correct hundreds of file links because of moving a very large section within a web site. I have this now:

1) <a href="../../../archival/archive13/Jan14/Jan114/intro-frankant.html">

and need to chop off this portion of above link example:
2) ../../../archival/archive13/

leaving this as the correct link instead:
3) <a href="Jan14/Jan114/intro-frankant.html">

The front portion to chop is always the same while the rest of the link always varies and should be left as is.

I hope someone out there can suggest a way to do this as I am script-challenged and need to fix the links as soon as possible.

Thanks for any help in advance!
--
All the best, :-)
Nancy Belle, belle at antennex.com
4/4/2015 


More information about the freebsd-questions mailing list