title: How to create a user from a file in Bash?
body: <p>I have a file called <code>user.txt</code> with around one hundred entries that are in this format: <code>user:password:group:shellToUse</code></p>
  
  <p>ex. :</p>
  
  <pre><code>martin:pwd123:photo:bash
  marc:pwd321:devel:c-shell
  ...
  </code></pre>
  
  <p>How can I create users by reading the entries in this file with a Bash script? </p>
  
  <p>Also, the home directory of the users must look like <code>/home/group/user</code>, and the default <code>shellToUse</code> is Bash.</p>