<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">
<br clear="all">Dear sir <br><br> ls -l |grep -v d| awk '{print $8}'|xargs rm<br><br>you suggested this script but where do i put my files name that r not to be deleted<br><span class="sg"><br>-- <br>Shali.K.R<br>
Asst.Librarian(Digital)
<br>Vidya Academy of Science & Technology<br>Thrissur, Kerala.<br>Mob:9846303531
</span><br>--<br>ubuntu-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br><br></blockquote></div>
<br>hi ... <div><br class="webkit-block-placeholder"></div><div>don't run this command ...within any dir ... you need to know what you are doing ...the above is just an example .... in which it will only remove file and will keep the directories.
</div><div><br class="webkit-block-placeholder"></div><div>and more ... grep -v *.jpg etc ... to avoid deleting that files</div><div><br class="webkit-block-placeholder"></div><div>You should always test ... before you do this in production.
<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
</div>