Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site, or you can call me AlanSung

Hi! I’m clsung RSS Feed
 
 
 
 

[shell] 用 find 清垃圾

這應該不用解釋了吧? :D

find . ( -name “*~” -or -name “*.tgz” ) | xargs rm

嗯,其實我好像也跟 DK 一樣,都寫很短 :p,不過我的 code 好像更少 :oops:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn

2 Responses to “[shell] 用 find 清垃圾”

  1. 1
    Gea-Suan Lin's BLOG:

    清垃圾檔案

    剛剛突然發現我居然沒訂爽爽爽的 blog (我明明就記得有訂,奇怪了),剛好看到一篇舊文章:
    find . \( -name “*~” -or -name “*.tgz” \) | xargs rm
    我想講的很簡單啦,如果是 FreeBSD 的 find,其實有 -d…

  2. 2
    clsung:

    -d 要拿來幹嘛?_?

Leave a Reply

噗浪:

  • clsung 說 來睡,這裡果然溫暖好多 5 hours 前
  • clsung 說 冷 9 hours 前
  • clsung 說 本週六要上班.... 累 13 hours 前

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan