<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: check file size in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166234#M50496</link>
    <description>if [ -s filename ]&lt;BR /&gt;the condition is true if the file exist and has a size greater than zero.</description>
    <pubDate>Mon, 06 Apr 2009 18:02:09 GMT</pubDate>
    <dc:creator>Kannan V</dc:creator>
    <dc:date>2009-04-06T18:02:09Z</dc:date>
    <item>
      <title>check file size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166230#M50492</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I'm in a ksh script. I need to test the size of a file.&lt;BR /&gt;&lt;BR /&gt;Is there a way with if [[ -s file .....&lt;BR /&gt;&lt;BR /&gt;What is the syntax ?&lt;BR /&gt;&lt;BR /&gt;Bests Regards&lt;BR /&gt;Den</description>
      <pubDate>Wed, 25 Mar 2009 19:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166230#M50492</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2009-03-25T19:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: check file size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166231#M50493</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;in here:&lt;BR /&gt;&lt;A href="http://www.bo.infn.it/alice/alice-doc/mll-doc/impgde/node20.html" target="_blank"&gt;http://www.bo.infn.it/alice/alice-doc/mll-doc/impgde/node20.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.computing.net/answers/unix/ksh-script-problem/3454.html" target="_blank"&gt;http://www.computing.net/answers/unix/ksh-script-problem/3454.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/ksh/Q_23937605.html" target="_blank"&gt;http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/ksh/Q_23937605.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.coe.org/Collaboration/DiscussionForum/ActiveDiscussions/tabid/210/forumid/15/postid/105657/view/topic/Default.aspx" target="_blank"&gt;http://www.coe.org/Collaboration/DiscussionForum/ActiveDiscussions/tabid/210/forumid/15/postid/105657/view/topic/Default.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Last one looks best to me.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 25 Mar 2009 20:17:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166231#M50493</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-03-25T20:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: check file size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166232#M50494</link>
      <description>I would use something like:&lt;BR /&gt;&lt;BR /&gt;FSIZE=$(ls -la $FILE | awk '{print $5}')&lt;BR /&gt;if [ $FSIZE &amp;lt;-lt|-eq|-ne|-gt&amp;gt; &lt;SIZE in="" bytes=""&gt; ]&lt;BR /&gt;then&lt;BR /&gt;  &lt;ACTIONS&gt;&lt;BR /&gt;fi&lt;/ACTIONS&gt;&lt;/SIZE&gt;</description>
      <pubDate>Wed, 25 Mar 2009 20:57:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166232#M50494</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-03-25T20:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: check file size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166233#M50495</link>
      <description>Thanks Guys</description>
      <pubDate>Thu, 26 Mar 2009 14:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166233#M50495</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2009-03-26T14:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: check file size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166234#M50496</link>
      <description>if [ -s filename ]&lt;BR /&gt;the condition is true if the file exist and has a size greater than zero.</description>
      <pubDate>Mon, 06 Apr 2009 18:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-file-size/m-p/5166234#M50496</guid>
      <dc:creator>Kannan V</dc:creator>
      <dc:date>2009-04-06T18:02:09Z</dc:date>
    </item>
  </channel>
</rss>

