skip to main
|
skip to sidebar
marr weblog
learning to lead a life of awareness.
2008/06/19
Find and Remove Files
$ find . -name "*.pyc" -type f -print0 | xargs -0 /bin/rm -f
一般情況 find 預設使用 -print 參數,如果擔心找到的檔名含有空白、換行等符號,使用 -print0 較安全,而且搭配 xargs 時會使用 -0 參數。
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2019
(1)
►
October
(1)
►
2018
(2)
►
September
(2)
►
2016
(5)
►
August
(1)
►
July
(1)
►
June
(1)
►
April
(2)
►
2015
(8)
►
November
(1)
►
October
(1)
►
July
(1)
►
June
(2)
►
May
(2)
►
February
(1)
►
2014
(13)
►
December
(1)
►
August
(1)
►
July
(1)
►
June
(4)
►
May
(2)
►
April
(1)
►
March
(2)
►
January
(1)
►
2013
(40)
►
December
(2)
►
November
(5)
►
October
(2)
►
September
(1)
►
August
(3)
►
July
(2)
►
June
(6)
►
May
(3)
►
April
(4)
►
March
(5)
►
February
(3)
►
January
(4)
►
2012
(79)
►
December
(4)
►
November
(5)
►
October
(7)
►
September
(5)
►
August
(6)
►
July
(9)
►
June
(12)
►
May
(8)
►
April
(8)
►
March
(9)
►
February
(5)
►
January
(1)
►
2011
(64)
►
December
(10)
►
November
(8)
►
October
(7)
►
September
(12)
►
August
(7)
►
July
(2)
►
June
(4)
►
May
(4)
►
April
(6)
►
February
(1)
►
January
(3)
►
2010
(36)
►
December
(3)
►
November
(4)
►
October
(3)
►
September
(2)
►
August
(4)
►
June
(2)
►
May
(3)
►
April
(5)
►
March
(7)
►
January
(3)
►
2009
(39)
►
December
(3)
►
November
(5)
►
October
(4)
►
September
(2)
►
August
(3)
►
July
(4)
►
June
(2)
►
May
(7)
►
April
(3)
►
March
(3)
►
February
(1)
►
January
(2)
▼
2008
(28)
►
December
(1)
►
November
(2)
►
October
(4)
►
September
(3)
►
August
(5)
►
July
(1)
▼
June
(6)
Find and Remove Files
Communication Breakdown - Led Zeppelin
Open Controlling
The Origins of Linux
How Do Python and RubyOnRails Relate?
RPM and DEB Generation
►
May
(1)
►
April
(2)
►
March
(2)
►
February
(1)
►
2007
(23)
►
December
(4)
►
November
(2)
►
October
(2)
►
September
(1)
►
July
(2)
►
June
(1)
►
May
(5)
►
April
(3)
►
March
(2)
►
February
(1)
►
2006
(2)
►
November
(2)
About Me
marr
View my complete profile
No comments:
Post a Comment