title: Shell script: Check if a Directory is of YYYY_MM_DD_HH this format
body: <p>I have a script that creates a file list of directories available in another path.
  Now, I would like to do some tasks only if the Directory is of the format "YYYY_MM_DD_HH" in this file list.</p>
  
  <p>My file list has following entries:</p>
  
  <p>2014_04_21_01</p>
  
  <p>asdf</p>
  
  <p>2012_01_19_10</p>
  
  <p>2010_01</p>
  
  <p>Now  I would like to move the directories with names as  YYYY_MM_DD_HH  to another path. I.e., only 2014_04_21_01 &amp; 2012_01_19_10 MUST be MOVED.</p>
  
  <p>Please advise.</p>