title: Shell scripting: Contact list
body: <p>I have no idea how can I do this. I need to make an menu option where you can search a contact by his nick, and then modify his data.
  For example:</p>
  
  <blockquote>
    <p>Name - Nick - Phone - Mail</p>
    
    <p>John - Johnny - 123456789 - john@test.lan</p>
  </blockquote>
  
  <p>What I have till now it is:</p>
  
  <pre><code> add(){
      read -e -p "Name: " name
      read -e -p "Nick: " nick
      read -e -p "Phone: " phone
      read -e -p "Email: " mail
      echo $name "-" $nick "-" $phone "-" $mail &gt;&gt; list
      }
  
   mod(){
      read nick
      grep $nick list
      #Don't know how to continue this... :-/
      }
  </code></pre>
  
  <p>This function can be also used for search user info. So I think that I can pass the result to a temp, change there and after that to pass the info to the original file... but not sure if this will be the best option and if I know how to do this.</p>
  
  <p>Also I need to do some more options: delete contact, add contact and a function that should look if there are blank lines (remove them), contacts that have only the NICK (remove and save a reg).</p>