title: How can I use aliased commands with xargs?
body: <p>I have the following alias in my .aliases:</p>
  
  <pre><code>alias gi grep -i
  </code></pre>
  
  <p>and I want to look for <code>foo</code> case-insensitively in all the files that have the string <code>bar</code> in their name:</p>
  
  <pre><code>find -name \*bar\* | xargs gi foo
  </code></pre>
  
  <p>This is what I get:</p>
  
  <pre><code>xargs: gi: No such file or directory
  </code></pre>
  
  <p>Is there any way to use aliases in xargs, or do I have to use the full version:</p>
  
  <pre><code>   find -name \*bar\* | xargs grep -i foo
  </code></pre>
  
  <p><strong>Note:</strong>  This is a simple example.  Besides <code>gi</code> I have some pretty complicated aliases that I can't expand manually so easily.</p>
  
  <p><strong>Edit:</strong>  I used <code>tcsh</code>, so please specify if an answer is shell-specific.</p>