title: How this command find a file in Rpm package
body: <p>I have given command which will find a particular file named /etc/limits in one of rpm package insatlled but when run on my system getting error not the desired result. Below is the command</p>
  
  <pre><code>find . -name '*.rpm' | while read A; do $RPM -qpl $A | grep etc/limits; \
  if [ $? -eq 0 ]; then echo $A; fi; done
  /etc/limits
  </code></pre>
  
  <p>When I run this command getting below error </p>
  
  <pre><code>bash: syntax error near unexpected token `/etc/limits'
  </code></pre>
  
  <p>Could anybody tell me what is going wrong here?</p>