<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On Wednesday 25 August 2010 04:44 PM, Abhishek Amberkar [अभिषेक] wrote:
<blockquote
cite="mid:AANLkTik6n3OTr03T3cRVUJ69fidM=DrrQuZUTi_Q5JB8@mail.gmail.com"
type="cite">
<pre wrap="">On Wed, Aug 25, 2010 at 4:30 PM, Jkhatri <a class="moz-txt-link-rfc2396E" href="mailto:khatri.jatin@gmail.com"><khatri.jatin@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Wednesday 25 August 2010 01:55 PM, Ritesh Sinha wrote:
</pre>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">
Use or modify following script ---- This will find the file less then 100kb
( you can use lt or = also ) -- give you the list of that files and if you
say "YES" it will delete that file ------
-----------------------------------------------------------------------------------------------------------------------------------------------
##/bin/bash -x
dir_to_clean=$1
cd $1
ls -l | awk '{if ($5 < 100) print ("rm -f " $8)}' > rmscript.sh
chmod +x rmscript.sh
echo "The following files less the 100 will be removed:"
cat rmscript.sh
echo -n "Proceed? [y/n]: "
read response
if [ "$response" = "y" ]
then
sh rmscript.sh
fi
rm -rf rmscript.sh
-------------------------------------------------------------------------------------------------
</pre>
</blockquote>
<pre wrap="">
If two binaries can do the trick, why to use multiple?
ls -l will take way long time since OP has 200GB of files. For the
same reason cat rmscript.sh will be useless.
</pre>
</blockquote>
That is why I told <u><b>use or modify</b></u><br>
<br>
<br>
Warm Regards <br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)">
<meta name="AUTHOR" content="livewire ">
<meta name="CREATED" content="20100413;16400600">
<meta name="CHANGEDBY" content="livewire ">
<meta name="CHANGED" content="20100413;16433900">
<style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
                A:link { so-language: zxx }
        -->
        </style>
<p style="margin-bottom: 0cm;">Jatin Khatri</p>
<p style="margin-bottom: 0cm;">Web <a
href="http://www.khatrijatin.co.nr/">www.khatrijatin.co.nr</a></p>
<p style="margin-bottom: 0cm;"><a
href="http://www.fedoraproject.org/wiki/Jatin">www.fedoraproject.org/wiki/Jatin</a>
</p>
<p style="margin-bottom: 0cm;">Phone (+91) 98250 20393</p>
<p style="margin-bottom: 0cm; font-style: normal; font-weight: normal;">
<font face="arial"><font size="2"><font color="#008000"><font
face="Arial">Save
Paper, Save Environment.**</font></font><font color="#993366"><br>
</font><font color="#008000"><font face="Arial"><i><b>(Plant
at least one tree in your life and nurture it !!!)</b></i></font></font></font></font></p>
<p style="margin-bottom: 0cm;"><br>
</p>
</div>
</body>
</html>