Calvin's Tech Space

          成于堅(jiān)忍,毀于浮躁

             :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
          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) 評(píng)論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 巨野县| 贡山| 长乐市| 宾川县| 施甸县| 民县| 沙河市| 清涧县| 余干县| 凭祥市| 昭觉县| 合作市| 山丹县| 琼结县| 犍为县| 孝昌县| 兴海县| 兴城市| 丹凤县| 确山县| 明溪县| 斗六市| 汝城县| 滦平县| 新宁县| 武安市| 郸城县| 林芝县| 泗水县| 聂拉木县| 鄂伦春自治旗| 如东县| 湘潭县| 卢龙县| 宁德市| 丰城市| 老河口市| 吉林省| 宝应县| 扶余县| 黑河市|