rm指令 - Linux

By George
at 2009-12-31T23:43
at 2009-12-31T23:43
Table of Contents
※ 引述《kok45 (11)》之銘言:
: 請問如果我想移除 .cpp files
: 但想保留特定某幾個 .cpp 檔 如 main.cpp
: 指令應該怎麼下??
: rm -f *.cpp ???????
: 感謝
: 另一個問題是
: 如果我想移除所有的檔案
: 但不包括 .cpp .h files
: 請問 rm 可以做到嘛???
: 感謝
ls *.cpp | grep -v main.cpp | xargs rm
--
keep it simple and stupid
--
: 請問如果我想移除 .cpp files
: 但想保留特定某幾個 .cpp 檔 如 main.cpp
: 指令應該怎麼下??
: rm -f *.cpp ???????
: 感謝
: 另一個問題是
: 如果我想移除所有的檔案
: 但不包括 .cpp .h files
: 請問 rm 可以做到嘛???
: 感謝
ls *.cpp | grep -v main.cpp | xargs rm
--
keep it simple and stupid
--
Tags:
Linux
All Comments
Related Posts
透過 router 連 VNC

By Quanna
at 2009-12-31T20:05
at 2009-12-31T20:05
ubuntu 找不到網卡

By Oliver
at 2009-12-31T19:40
at 2009-12-31T19:40
open source software 室內設計 f@@

By Carol
at 2009-12-31T17:45
at 2009-12-31T17:45
用 thunderbird 取代 outlook ?

By Audriana
at 2009-12-31T16:25
at 2009-12-31T16:25
vsftp虛擬帳戶無法登入

By Carol
at 2009-12-31T16:15
at 2009-12-31T16:15