0
請如何刪除特殊組contoso中的所有文件和文件夾?Linux如何刪除組中的所有文件和文件夾Contoso
drwxr-x--- 2 root contoso 850 Apr 20 10:07 jasteps
-rwxr-x--- 1 root contoso 394870 Mar 23 18:52 kedb.3.xml
drwx------ 2 root root 117 Apr 19 10:43 trweT
drwx------ 2 root root 117 Apr 18 15:16 tmewLQrt
drwxr-xr-x 2 beswbm sapsys 117 May 5 09:40 hswdata_bpqadm
drwxr-xr-x 2 estsdm sapsys 117 Apr 28 12:04 hspewwata_eptadm
drwxr-xr-x 2 oracle dba 117 May 5 10:01 hfeta_oracle
用於在for循環中使用'cat files.txt'。請閱讀[BashFAQ](http://mywiki.wooledge.org/BashFAQ/001)和[循環瀏覽Bash中的文件內容?](http://stackoverflow.com/questions/1521462/looping-through-文件中的內容) – dawg
'rm -rf $ i' - 你需要引用'$ i'就像這樣:'rm -rf「$ i」' – dawg
整件事情比較好這樣做:'找。 [初選] print0 | xargs -0 [做你需要做的每件事]'。 – dawg