weidagang2046的專欄

          物格而后知致
          隨筆 - 8, 文章 - 409, 評論 - 101, 引用 - 0
          數(shù)據(jù)加載中……

          刪除用通配符匹配的一類文件

          unlink 可以用通配符

          ?????? unlink LIST
          ? ?? ? unlink??Deletes a list of files.??Returns the number of files success-
          ? ?? ?? ?? ?? ?fully deleted.

          ? ?? ?? ?? ?? ?? ? $cnt = unlink ’a’, ’b’, ’c’;
          ? ?? ?? ?? ?? ?? ? unlink @goners;
          ? ?? ?? ?? ?? ?? ? unlink <*.bak>;

          ? ?? ?? ?? ?? ?Note: "unlink" will not delete directories unless you are supe-
          ? ?? ?? ?? ?? ?ruser and the -U flag is supplied to Perl.??Even if these con-
          ? ?? ?? ?? ?? ?ditions are met, be warned that unlinking a directory can
          ? ?? ?? ?? ?? ?inflict damage on your filesystem.??Use "rmdir" instead.

          ? ?? ?? ?? ?? ?If LIST is omitted, uses $_.

          posted on 2006-08-17 23:28 weidagang2046 閱讀(804) 評論(0)  編輯  收藏 所屬分類: Perl

          主站蜘蛛池模板: 明星| 三门峡市| 泉州市| 毕节市| 怀远县| 西吉县| 盱眙县| 新宾| 平湖市| 泰州市| 那坡县| 延安市| 布尔津县| 土默特左旗| 紫金县| 申扎县| 泾源县| 江门市| 纳雍县| 洛宁县| 光泽县| 宁河县| 绥阳县| 广饶县| 丹东市| 大厂| 吴堡县| 微山县| 康马县| 吉林省| 江油市| 进贤县| 芷江| 大名县| 安徽省| 通许县| 珠海市| 达日县| 阿巴嘎旗| 菏泽市| 原阳县|