• linux 文件批量改名

    脚本技巧 超过2,057 views围观 0条评论
      var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_5304322'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/stat.php%3Fid%3D5304322%26online%3D1' type='text/javascript'%3E%3C/script%...
  • linux 查找 并用sed修文件

    脚本技巧 超过1,310 views围观 0条评论
    var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_5304322'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/stat.php%3Fid%3D5304322%26online%3D1' type='text/javascript'%3E%3C/script%3E")); ...
  • linux 多命令联合使用

    脚本技巧 超过1,886 views围观 0条评论
    linux下使用find xargs sed grep查找文件及文件内容并替换   查询当前目录 含 >> 的sh文件 grep ">>" *.sh var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_5304322'%3E%3C/span%3E%3C...
  • Shell中判断文件,目录是否存在

    脚本技巧 超过1,314 views围观 0条评论
    一. 具体每个选项对应的判断内容: -e filename 如果 filename存在,则为真 -d filename 如果 filename为目录,则为真 -f filename 如果 filename为常规文件,则为真 -L filename 如果 filename为符号链接,则为真 -r filename 如果 filename可读,则为真 -w filename 如果 filename可写,则为真 -x filename 如果 ...
  • Shell中判断文件,目录是否存在

    脚本技巧 超过1,365 views围观 0条评论
    一. 具体每个选项对应的判断内容: -e filename 如果 filename存在,则为真 -d filename 如果 filename为目录,则为真 -f filename 如果 filename为常规文件,则为真 -L filename 如果 filename为符号链接,则为真 -r filename 如果 filename可读,则为真 -w filename 如果 filename可写,则为真 -x filename 如果...
  • shell中从1到100的循环方法

    脚本技巧 超过1,813 views围观 0条评论
    这里记录几种shell中从1到100的循环方法 方法 类c语言 [html] view plain copy for ((i=1; i<=100; i ++))  do      echo $i  done  in使用 [html] view plain copy for i in {1..100}  do      echo $i  done  seq使用 作用 [ht...