[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Basically, I need either a way to test if the file is 4000m and if it is, then 
use split on it, or if it's not, then just burn it. (alternative
suggestions for splitting it up are also welcome, of course)

I tried making an if statement but couldn't for the life of me figure out how 
to get a file size in Bash and compare it to a number like 4000m. (i.e. if I 
use 'du filename' how do I return that into a variable and compare it?) 
Before I go and rewrite this whole backup script in something else (Perl, 
etc) I thought I'd ask if anyone could help me do it in Bash.

Thanks,
-Jay


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00287" href="msg00287.html">[ale] file size in shell script?</a></strong>
<ul><li><em>From:</em> pras at cycloeastern.com (pras at cycloeastern.com)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00283.html">[ale] OT - Gas Prices</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00285.html">[ale] Fetchmail</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00283.html">[ale] OT - Gas Prices</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00287.html">[ale] file size in shell script?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00284"><strong>Date</strong></a></li>
<li><a href="threads.html#00284"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>