MapleRain

MapleRain - MapleStory Strategy

주요 업데이트, 이미지가 표시되지 않거나 올바르지 않은 경우 CTRL+F5를 누르거나 브라우저 캐시를 지워주세요.
지원 / Discuss / PC / Linux 討論版 / Shell /

刪除特定條件的檔案

New Subject
Random
Previous
Next
|
刪除特定條件的檔案

其實 rm 在刪除特定條件的檔案的功能上並沒有很方便!
所以我們可以利用  find 指令配合 rm 指令便可以完成彈性很大的條件化檔案刪除唷!

find 尋找路徑 -name 檔名條件 -ok rm -rf {} \;

例如 : %>  find ./ -name "*.cache" -exec rm -rf {} \;
就可以刪除 ./ 目錄下及子目錄下的 *.cache 檔案 ! 是不是方便許多呢!

-ok 的意思是每一個處理的程序都會問使用者是否OK...會比較安全一點。

-exec 的意思是處理程序會直接執行囉不會再問東問西的。

  • Keywords : 檔案, 意思, cache, 處理, 程序, 每一, 檔名, 會問使用者, 方便許多呢, 方便, 指令配合, 指令便可以, 成彈性, 就可以刪除, 尋找路徑, 安全一點, 否OK, 可以利用, 功能上, 刪除特定
0 0
2008-12-16T14:04:05+0000


  • Now, you can post comments by Facebook Account when your Yampiz account was logout or unvariable. whatever, we suggest to post comment by Yampiz Account to get more bounds to join new events of Heyxu
Comment
 
코드 검증

페이 스북 페이지

Maplestroy Query

Member only below
Lev Range
Move Type
Hate

QR-Code and APP Launcher

설명
This Webpage

In those service tabs, "Scan QRCode, in mobile device" or "Click the button, in this device" to open webpage or APP-related operations.
QRCode
  • 자동 플랫폼
    더 나은 인터넷 사용 환경을 위해 자동으로 기기에서 웹 페이지를 표시합니다.
  • 제안 및 오류 반환
    발견 한 아이디어, 문제점 및 오류에 대해 알려주십시오.
  • Comodo Secure
    The sensitive data transmission adopts by SSL-2048 authenticated encryption.
  • 저작권
    © 2009 YamPiz 디지털 기술 - 판권 소유.
  • 버전 번호
    V2.2.272
    24 May 2025 (GMT+8)