Date: Sat, 04 Apr 2015 13:34:17 -0400 From: Jon Radel <jon@radel.com> To: Nancy Belle <belle@antennex.com>, freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Chop and replace method?? Message-ID: <55202099.9090908@radel.com> In-Reply-To: <DM__150404113753_01984604235@mail.antennex.com> References: <DM__150404113753_01984604235@mail.antennex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 4/4/15 12:48 PM, Nancy Belle wrote:
> 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.
>
As always, it pays to have a really good backup before applying random
scripts that can trash your files in one easy step, particularly those
from friendly strangers on the Internet. :-)
sed -i .bak 's/href=\"..\/..\/..\/archival\/archive13\//href=\"/' *.html
should do what you asked for. But test on copies. Really!
And use a different extension than .bak if you already have .bak files
you care about.
--Jon Radel
jon@radel.com
[-- Attachment #2 --]
0 *H
010 + 0 *H
00 #SanzTgk!0
*H
0o10 USE10U
AddTrust AB1&0$UAddTrust External TTP Network1"0 UAddTrust External CA Root0
141222000000Z
200530104838Z010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1A0?U8COMODO SHA-256 Client Authentication and Secure Email CA0"0
*H
0
zSNpRV&IQZI`zQBy"aNv#
J n=ٺ.CRC|2PȦOZϓ%{0dV*$3DiFK3@@:*S= a<UNv%!)|qvO_T{5R"=,0-1YR73i-C֥wgQ'뼥8v8ߌIs:2:=F:WtaP@?⟢! 00U#0z4&&T$T0UakᢠOg£ 0U0U0 0U%0++0U
00U 0DU=0;09753http://crl.usertrust.com/AddTrustExternalCARoot.crl05+)0'0%+0http://ocsp.usertrust.com0
*H
*nU:Uka+ #fjow^a } [jr
AX&MX"cR6}Xޫ;cs{B#ʶM>K-ػBKiۦ74{:ǟO4ne6d)5ֱqC>2Svʆ4,Jؙ
␒ZBj#!eջ~ꌅ b:,Yř38zyJ&|00sT<}k
`i
0
*H
010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1A0?U8COMODO SHA-256 Client Authentication and Secure Email CA0
150330000000Z
180329235959Z010 UUS10U2215010 UVA10USpringfield10U 6917 Ridgeway Dr.10U
Jon T. Radel1200U)Issued through Jon T. Radel E-PKI Manager10UCorporate Secure Email10U Jon Radel10 *H
jon@radel.com0"0
*H
0
aЩ@@g3eGރ͛; d#>q7&Hf
:3vL"jV#Xݷ>U-H[$SUڻ{Ϝ,z¶IchO=rcyrn v.Vh7k;%ueYuӬnz6!| !Aȡ+,u+
CAպF-un#vjUJWnk%j]
2JPkl 00U#0akᢠOg£ 0UE|GDp/ʚB0U0U0 0U%0++0FU ?0=0;+10+0)+https://secure.comodo.net/CPS0]UV0T0RPNLhttp://crl.comodoca.com/COMODOSHA256ClientAuthenticationandSecureEmailCA.crl0+00X+0Lhttp://crt.comodoca.com/COMODOSHA256ClientAuthenticationandSecureEmailCA.crt0$+0http://ocsp.comodoca.com0U0
jon@radel.com0
*H
KS `?H_D`8G߿VbĘ<tB-Ӈї|{'Ũݹg0Gp$%F(;*MO*gt$@ t6,?0|#ăz,&! {j2i[%b7ߪP+9G㲍["y<?8rZ'[UR6%L̤
w"=:L~Ƨ^jf36 OP1.}(e110-0010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1A0?U8COMODO SHA-256 Client Authentication and Secure Email CAsT<}k
`i
0 + U0 *H
1 *H
0 *H
1
150404173417Z0# *H
1B<䎥%1eQ0l *H
1_0]0 `He*0 `He0
*H
0*H
0
*H
@0+0
*H
(0 +710010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1A0?U8COMODO SHA-256 Client Authentication and Secure Email CAsT<}k
`i
0*H
1010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1A0?U8COMODO SHA-256 Client Authentication and Secure Email CAsT<}k
`i
0
*H
KWmklh͡r#<
M9u
C73W#ΰnjZYY$rƆ_6U;H8`
3e\~̋:^LqN,Ar0!qS,RRуk
OڦpR1jZap{OAFHf<d^p{@@jJtl|}-j]nm@dq0Jx{~($ A(2x z9o
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55202099.9090908>
