1.需求:linux使用shell命令查询结果前后批量追加内容 例如:我需要在当前目录下所有的css文件路径前追加域名 我想的是用sed替换去实现,鲍哥的思路是用for循环 1.1方法1:鲍哥的for循环 这是鲍哥的思路,我写出来后,鲍哥说很二. for i in `find . -type f -name '*.css'`;do echo 'http://www.baidu.com/css/'$i;done 1.2方法2:sed替换 find . -type f -name '*.css'|s
linux命令---查找文件中的内容 [yang@localhost ~]$ cat 1.txt |egrep '123456789|second'-------匹配123456789或者second的行 first line:123456789012345678901234567890123456789012345678901234567890 second line:one two three four five six seven eight nine ten [yang@localh
$("#insertMsg").on("click",function(){ //获取下拉选项框的值 var textFeildValue = $("#text_type").find("option:selected").text(); //获取textarea的值 var myField=document.getElementById("text_smsnr"); if (document.select