zhyiwww
          用平實(shí)的筆,記錄編程路上的點(diǎn)點(diǎn)滴滴………
          posts - 536,comments - 394,trackbacks - 0
          <2007年8月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          -------------------------------------------
          崇尚原創(chuàng)精神,
          文章歡迎轉(zhuǎn)載,
          請(qǐng)您注明出處,
          在此特別聲明。
          版權(quán)所有@zhyiwww
          引用鏈接
          http://www.aygfsteel.com/zhyiwww

          --------------------------------------------

          常用鏈接

          留言簿(33)

          隨筆分類(626)

          朋友的博客

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 1560997
          • 排名 - 11

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          想在windows下使用命令來查找文件,可以使用如下命令:where
          命令的格式如下:

          WHERE [/R dir] [/Q] [/F] [/T] pattern...

          Description:
          ??? Displays the location of files that match the search pattern.
          ??? By default, the search is done along the current directory and
          ??? in the paths specified by the PATH environment variable.

          Parameter List:
          ??? /R?????? Recursively searches and displays the files that match the
          ???????????? given pattern starting from the specified directory.

          ??? /Q?????? Returns only the exit code, without displaying the list
          ???????????? of matched files. (quite mode)

          ??? /F?????? Displays the matched filename in double quotes.

          ??? /T?????? Displays the file size, last modified date and time for all
          ???????????? matched files.

          ??? pattern? Specifies the search pattern for the files to match.
          ???????????? Wildcards * and ? can be used in the pattern. The
          ???????????? "$env:pattern" and "path:pattern" formats can also be
          ???????????? specified, where "env" is an environment variable and
          ???????????? the search is done in the specified paths of the "env"
          ???????????? environment variable. These formats should not be used
          ???????????? with /R. The search is also done by appending the
          ???????????? extensions of the PATHEXT variable to the pattern.

          ???? /?????? Displays this help message.

          ? NOTE: The tool returns an error level of 0 if the search is
          ??????? successful, of 1 if the search is unsuccessful and
          ??????? of 2 for failures or errors.

          Examples:
          ??? WHERE /?
          ??? WHERE myfilename1 myfile????.*
          ??? WHERE $windir:*.*
          ??? WHERE /R c:\windows *.exe *.dll *.bat?
          ??? WHERE /Q ??.???
          ??? WHERE "c:\windows;c:\windows\system32:*.dll"
          ??? WHERE /F /T *.dll

          我們想查找文件內(nèi)容的命令是:find或者findstr
          在linux下的查找文件的命令也是 :? where
          也可以使用find -name
          查找文件的內(nèi)容的話,可以使用grep ,支持正則表達(dá)式,使用起來也很方便,再加上管道,有的時(shí)候會(huì)覺得特別的方便和快捷。


          |----------------------------------------------------------------------------------------|
                                     版權(quán)聲明  版權(quán)所有 @zhyiwww
                      引用請(qǐng)注明來源 http://www.aygfsteel.com/zhyiwww   
          |----------------------------------------------------------------------------------------|
          posted on 2007-08-23 18:13 zhyiwww 閱讀(5602) 評(píng)論(0)  編輯  收藏 所屬分類: windows
          主站蜘蛛池模板: 河间市| 鞍山市| 平邑县| 彰化县| 滕州市| 修文县| 铜山县| 保亭| 卢湾区| 梁平县| 盐池县| 方正县| 平湖市| 浙江省| 那坡县| 长泰县| 本溪市| 仲巴县| 特克斯县| 玉屏| 新乡县| 永修县| 苏尼特左旗| 洛宁县| 澎湖县| 卓尼县| 汽车| 噶尔县| 肥城市| 新源县| 龙游县| 申扎县| 卓资县| 镇坪县| 大同市| 济宁市| 治县。| 清水县| 馆陶县| 枞阳县| 嘉定区|