there are more than 10 identical stations
/ data/www/aa.com/test.php
/ data/www/bb.com/test.php
/ data/www/cc.com/test.php
I want to use the Linux command to batch modify / data/www/aa.com/test.php a certain line of the specified file $article" MODEL ("article"); add the following code
$M->AddNewsHits(array("id"=>(int)$_GET["id"]));
$news_info=$M->GetNewsBaseOnce(array("id"=>(int)$_GET["id"]),array("field"=>"hits"));
echo "document.write("".$news_info["hits"]."")";
how to write with the linux shell command, there is still a better way to give up