One-liner to move files that match a pattern to a new directory
<p>I need to move files in my home directory into a new directory. I need to select files with names that begin with a random set of 20 capital letters. The random set will consist of only 4 letters: T, A, G, or C. Because of the variability of names searched for, and the presence of names that would consist of 20 consecutive capital letters but without meeting the T, A, G, or C only requirement, a regex seems like the best option here. </p>

<p>I have tried to use a regular expression, but it doesn't work with this one-liner. </p>

<pre><code>find source -name "([TAGC]{20})" -exec mv -i {} -t ~/dst \; 
</code></pre>

<p>Is there a way of making this, or a similar, one-liner work for this situation, or do I need to write a script? </p>