desktop cleaning

Nils Kassube kassube at gmx.net
Thu Nov 15 10:30:20 UTC 2007


Shibu C Varughese wrote:
> you can try to write your own shell script... the script below will
> delete all file in a particular directory expect the directories.
>
>  ls -l |grep -v d| awk '{print $8}'|xargs rm

Don't try this command if you don't know what you are doing. Depending on 
the filenames in the directory where the command is entered it may delete 
other files than expected.


Nils




More information about the ubuntu-users mailing list