title: append epoch date at the beginning of a file in bash
body: <p>I have a list of 20 files, 10 of them already have 1970-01-01- at the beginning of the name and 10 does not ( the remaining ones all start with a small letter ) . </p>
  
  <p>So my task was to rename those files that do not have the epoch date in the beginning with the epoch date too. Using bash, the below code works, but I could not solve it using a regular expression for example using rename. I had to extract the basename and then further mv. An elegant solution would be just use one pipe instead of two.</p>
  
  <p>Works</p>
  
  <pre><code>find ./ -regex './[a-z].*' | xargs -I {}  basename {} | xargs -I {} mv {} 1970-01-01-{}
  </code></pre>
  
  <p>Hence looking for a solution with just one xargs or -exec?</p>