title: How can I find encoding of a file via a script on Linux?
body: <p>I need to find the encoding of all files that are placed in a directory. Is there a way to find the encoding used?</p>
  <p>The <a href="https://linux.die.net/man/1/file" rel="noreferrer"><code>file</code></a> command is not able to do this.</p>
  <p>The encoding that is of interest to me is <a href="https://en.wikipedia.org/wiki/ISO/IEC_8859-1" rel="noreferrer">ISO 8859-1</a>. If the encoding is anything else, I want to move the file to another directory.</p>