Skip to content

Commit 87a5edd

Browse files
committed
用rm递归删除子目录下所有.o后缀文件
1 parent 41d7db5 commit 87a5edd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 用rm递归删除子目录下所有.o后缀文件
2+
3+
``` shell
4+
find . -name "*.o" | xargs rm -f
5+
```
6+
7+
8+
9+
可以通过管道命令来操作,先find出主目录 下想删除的文件,然后通过“xargs”这个构造参数列表并运行命令。
10+
11+
```shell
12+
find named/ -name *.bak | xargs rm -f
13+
```

0 commit comments

Comments
 (0)