shell 或 perl 脚本将双引号替换为其 unicode

shell 或 perl 脚本将双引号替换为其 unicode

我在一个文件夹中有两个文件名分别为 a.html 和 a.xml,在 a.html 文件中我有一个标签

<div class="snippet abstract">
We present a new "model" for multiple-input-multiple-output (MIMO) outdoor wireless fading channels "and" their capacity performance. The proposed model is more general and realistic than the usual independent and identically distributed (i.i.d.) model, and allows us to investigate the "behavior" of channel capacity as a function of the scattering radii at transmitter and receiver, distance between the transmit and receive arrays, and antenna beamwidths and spacing. We show how the MIMO capacity is governed by spatial fading correlation and the condition number of the channel matrix through specific sets of propagation parameters. The proposed model explains the existence of "pinhole" channels which exhibit low spatial fading correlation at both ends of the link but still have poor rank properties, and hence, low ergodic capacity. In fact, the model suggests the existence of a more general family of channels spanning continuously from full rank i.i.d. to low-rank pinhole cases. We suggest guidelines for predicting high rank (and hence, high ergodic capacity) in MIMO channels, and show that even at long ranges, high channel rank can easily be sustained under mild scattering conditions. Finally, we validate our results by simulations using ray tracing techniques. Connections with basic antenna theory are made.
<div><a href="dfgfs">Full Abstract</a>

我必须替换标签内的双引号,如下所示

 <div class="snippet abstract">
We present a new x#&201C;modelx#&201D; for multiple-input-multiple-output (MIMO) outdoor wireless fading channels x#&201C;andx#&201D; their capacity performance. The proposed model is more general and realistic than the usual independent and identically distributed (i.i.d.) model, and allows us to investigate the x#&201C;behaviorx#&201D; of channel capacity as a function of the scattering radii at transmitter and receiver, distance between the transmit and receive arrays, and antenna beamwidths and spacing. We show how the MIMO capacity is governed by spatial fading correlation and the condition number of the channel matrix through specific sets of propagation parameters. The proposed model explains the existence of x#&201D;pinholex#&201D; channels which exhibit low spatial fading correlation at both ends of the link but still have poor rank properties, and hence, low ergodic capacity. In fact, the model suggests the existence of a more general family of channels spanning continuously from full rank i.i.d. to low-rank pinhole cases. We suggest guidelines for predicting high rank (and hence, high ergodic capacity) in MIMO channels, and show that even at long ranges, high channel rank can easily be sustained under mild scattering conditions. Finally, we validate our results by simulations using ray tracing techniques. Connections with basic antenna theory are made.
<div><a href="sdffdf">Full Abstract</a>

但我应该替换

 <div class="snippet abstract">

    <div><a href="/xpl/articleDetails.jsp?

仅有的。

答案1

尝试以下代码...如果有任何说明请告诉我

use strict;
use warnings;

open(FILE,"tmp_html.html")or die "$!";



foreach(<FILE>){

        chomp($_);
        if(!(m/\=\"/)){
                $_=~s/\"/#&201C/g;
        }
        print "$_\n";

}

相关内容