Calvin's Tech Space

          成于堅忍,毀于浮躁

             :: 首頁 :: 聯系 :: 聚合  :: 管理
          find . -exec touch "{}"  \;

          touch非隱藏文件:
          find ./ -type f -exec touch "{}"  \;

          -exec command ;
                       Execute  command;  true  if 0 status is returned.  All following
                       arguments to find are taken to be arguments to the command until
                       an  argument  consisting of `;' is encountered.  The string `{}'
                       is replaced by the current file name being processed  everywhere
                       it occurs in the arguments to the command, not just in arguments
                       where it is alone, as in some versions of find.  Both  of  these
                       constructions might need to be escaped (with a `"') or quoted to
                       protect them from expansion by the shell.  The command  is  exe-
                       cuted in the starting directory.

          posted on 2010-03-17 15:42 calvin 閱讀(451) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 富民县| 百色市| 太谷县| 龙山县| 南昌县| 西华县| 右玉县| 金山区| 合山市| 巴东县| 嘉鱼县| 新建县| 吴江市| 濮阳市| 上蔡县| 五大连池市| 永仁县| 新野县| 九江市| 南投市| 屏东市| 都江堰市| 舟山市| 轮台县| 资源县| 吴桥县| 浠水县| 民乐县| 巨野县| 苍溪县| 浑源县| 来安县| 民县| 上蔡县| 天全县| 工布江达县| 通化市| 长丰县| 邵武市| 安达市| 盐山县|