title: No such file or directory in Bash?
body: <p>My bash script. After its completion, it receives <code>line 9: 1570066642: No such file or directory</code></p>
  
  <pre><code>#!/bin/bash
  
  DATE=$(date "+%s")
  
  while read p; do
  
  IFS=',' read -ra my_array &lt;&lt;&lt; "$p"
  
  if [ "${my_array[1]}" &lt; "${DATE}" ] ; then
      continue
  fi
  
  echo "$p" &gt;&gt; my_file.txt
  
  done &lt;cache_data.txt
  
  mv my_file.txt cache_data.txt
  </code></pre>
  
  <p>I want to check the difference between dates in timestamp seconds.</p>