title: How to print the line number where a string appears in a file?
body: <p>I have a specific word, and I would like to find out what line number in my file that word appears on. </p>
  
  <p>This is happening in a c shell script.</p>
  
  <p>I've been trying to play around with awk to find the line number, but so far I haven't been able to. I want to assign that line number to a variable as well.</p>