desktop cleaning

Shibu C Varughese shibucv at
Thu Nov 15 09:14:24 UTC 2007

On 11/15/07, Shali 9846303531 <shalib2 at> wrote:
> Dear sir,
> I am using ubuntu for internet services in library, i need a command or a
> script that  will  delete  all the files from the desktop except some files
> like icons.
> waiting 4 replay
> --
> Shali.K.R
> Asst.Librarian(Digital)
> Vidya Academy of Science & Technology
> Thrissur, Kerala.
> Mob:9846303531

hi ...

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

make changes to your pattern the above ...line ...   :)

shibucv at
True greatness is measured by how much freedom you give to others, not by
how much you can coerce others to do what you want. --Larry Wall
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list