title: How to use grep to output home directory of found text
body: <p>Using Ubuntu server ssh 14.04</p>
  
  <p>My goal is to <strong>find</strong> all users starting with "any literal" in directory /etc/passwd and to output it with <strong>their directory</strong> in File System using grep</p>
  
  <p>For example if i need users starting with "r" i will type command: grep ^r /etc/passwd</p>
  
  <p>but i also need to output their home directories</p>
  
  <p>How can i do it ?</p>