title: Bash if file sizes are greater than 1kb
body: <p>I have created a <code>vi</code> file and I want to check the files in my home directory to see their size. If the size of the regular file is greater than 1kb I want to back it up as a compressed file with .bak extension. I have started with the command <code>du -h --max-depth=0 * | sort -r</code> which list the files like...</p>
  
  <pre><code>10K archive.tar
  1.0K activity48
  1.0K activity47
  1.0K activity46
  1.0K activity45
  1.0k activity44
  1.0K activity43
  1.0K activity42
  1.0K activity41
  1.0K activity40
  1.0K activity39
  1.0K activity38
  </code></pre>
  
  <p>These are some of the files listed but my thought is I need to cut field 1 and somehow create an if statement and compare the field something like <code>if [ $x -ge 1.0 ] ; do</code> something. Any thoughts on how I should go about the problem...?</p>