title: Linux find-command with regex and write in a file working strange
body: <p>So I have a folder with .wav files that look like this:</p>
  <blockquote>
  <p>afr_(4 digits)_(random digits).wav</p>
  </blockquote>
  <p>I want to create a list with all files that start with for example afr_0184_ and afr_1919_ and I use this linux command line</p>
  <blockquote>
  <p>find /directory/  -name
  &quot;arf_0184_*.wav&quot; -o -name &quot;afr_1919_*.wav&quot; &gt; train.list</p>
  </blockquote>
  <p>For some reason the list only has afr_1919_ files in it as if it overwrites the afr_0184_ that are found before them.</p>
  <p>I also tried this</p>
  <blockquote>
  <p>find /directory/ -name 'afr_(0184|1919)_*.wav' &gt; train.list</p>
  </blockquote>
  <p>but the list is empty in this case.</p>
  <p>What am I doing wrong here?</p>