title: How To Print The Line Where Grep Matched
body: <p>I have the below command</p>
  <p><code>cat url.txt | parallel -j 12 curl -is -k {} 2&gt;&amp;1 | grep -a -n Location: word</code></p>
  <p>Whats it does is that it issues a curl command with each and every url in the text file and then if the http(s) header has Location: word it prints the match. I would like grep to print the url that caused the match.how can this be done?i tried adding <code>&amp;&amp; echo $</code> after the above command but it didnt work.</p>
  <p>Thanks</p>