title: How to match some words from file and list all the rows of that matching word? (without regex)
body: <p>Display the Employee details of all those working in a location which ends with <code>ore</code> in its location name</p>
  <pre><code>EmpID:Name:Designation:UnitName:Location:DateofJoining:Salary
  1001:Thomson:SE:IVS:Mumbai:10-Feb-1999:60000
  1002:Johnson:TE::Bangalore:18-Jun-2000:50000
  1003:Jackson:DM:IMS:Hyderabad:23-Apr-1985:90000
  1004:BobGL::ETA:Mumbai:05-Jan-2004:55000
  1005:Alice:PA:::26-Aug-2014:25000
  1006:LilySE:IVS::Bangalore:17-Dec-2015:40000
  1007:Kirsten:PM:IMS:Mumbai:26-Aug-2014:45000
  1004:BobGL::ETA:Mumbai:05-Jan-2021:55000
  </code></pre>
  <p>Expected output:</p>
  <pre><code>1002:Johnson:TE::Bangalore:18-Jun-2000:50000
  1006:LilySE:IVS::Bangalore:17-Dec-2015:40000
  </code></pre>
  <p>Here's the code I tried, it's only showing the location but I want full details</p>
  <pre><code>cut -d &quot;:&quot; -f4 employee.txt | grep 'ore\&gt;' 
  </code></pre>
  <p><strong>EDIT: SOLVED</strong></p>
  <pre><code>grep &quot;`cut -d &quot;:&quot; -f5 employee.txt | grep 'ore\&gt;'`$&quot; employee.txt
  </code></pre>
  <p>got output:</p>
  <pre><code>1002:Johnson:TE::Bangalore:18-Jun-2000:50000
  1006:LilySE:IVS::Bangalore:17-Dec-2015:40000
  </code></pre>
  <p>Thanks everyone for help :)</p>