title: How to read from text file line-by-line and split the line by a character?
body: <p>I'm writing a Bash script. My problem is I want to read from the text file line-by-line and split the line by a character. I want pure Bash code.</p>
  <p>Let's say I have this in the text file:</p>
  <p><strong>Format: (name;username;code)</strong></p>
  <pre><code>John Doe;johnDoe;534092
  John Dor;johnDor;923845
  Joan Doe;Joan;232423
  </code></pre>
  <p>I want to know how to split the string (line) by character &quot;;&quot;.</p>
  <p>I need to know this because of what I want to do next: I want to read this text file and for every name in the file make a new user (with the same home directory as name), the password should be the code, and default should be Bash.</p>
  <p>I'm reading the file with <code>while read line ...</code>.</p>