desktop cleaning

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


On 11/15/07, Shali 9846303531 <shalib2 at gmail.com> 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 ...in the above ...line ...   :)


-- 
shibucv at itmission.org
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: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071115/3a32143b/attachment.html>


More information about the ubuntu-users mailing list