代码: 全选
ls -R
.:
dialog hello MainWindow myhello signal size
./dialog:
dialog dialog.pro finddialog.cpp finddialog.h main.cpp Makefile moc_finddialog.cpp
./hello:
hello hello.pro main.cpp Makefile
./MainWindow:
MyApp MyApp-build-desktop
./MainWindow/MyApp:
build.sh main.cpp mainwindow.ui MyApp qrc_ico.cpp
fee.png mainwindow.cpp Makefile MyApp.pro ui_mainwindow.h
ico.qrc mainwindow.h moc_mainwindow.cpp MyApp.pro.user
./MainWindow/MyApp-build-desktop:
Makefile moc_mainwindow.cpp MyApp ui_mainwindow.h
./myhello:
hello.cpp
./signal:
main.cpp Makefile signal signal.pro
./size:
main.cpp Makefile size size.pro
我在网上找到这样的命令:
代码: 全选
ls -FR | grep \* | cut -d \* -f 1
dialog
hello
build.sh
MyApp
MyApp
signal
size
代码: 全选
| xarges rm
这个目录只是个例子,我真正要删除的目录有数十个子目录(平时编程练习的目录,有很多编译出来的程序,很占空间,想删除,反正有源代码,需要再编译呗),每个子目录下面又有很多子目录,所以手工删除很不现实。
谢谢了!