<br><br><div><span class="gmail_quote">On 11/15/07, <b class="gmail_sendername">Shali 9846303531</b> <<a href="mailto:shalib2@gmail.com">shalib2@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear sir,<br><br>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.<br><br>waiting 4 replay<br clear="all"><br>

-- <br>Shali.K.R<br>Asst.Librarian(Digital)<br>Vidya Academy of Science & Technology<br>Thrissur, Kerala.<br>Mob:9846303531
</blockquote><div><br class="webkit-block-placeholder"></div><div>hi ...</div><div><br class="webkit-block-placeholder"></div><div>you can try to write your own shell script... the script below will delete all file in a particular directory expect the directories.
</div><div><br class="webkit-block-placeholder"></div><div> ls -l |grep -v d| awk '{print $8}'|xargs rm </div><br> </div>make changes to your pattern ...in the above ...line ...   :)<br><br clear="all"><br>-- <br>
<a href="mailto:shibucv@itmission.org">shibucv@itmission.org</a><br>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