2012年7月21日 星期六

Linux: Pipe and xargs

I want to find certain files in a folder and its sub-folders, and then remove these files..

Here is the best solution I found.

find . | grep bak | xargs rm

or

find -iname "*.bak" | xargs rm

[Ref] http://blog.yam.com/ddy1280/article/13941218

沒有留言:

張貼留言