title: bash script to batch truncate filenames in one dir
body: <p>this question is somewhat unique among others asked.<br>
  i have a dir with a bunch of folders and they are named using periods to separate every word.<br>
  such as: foo.bar.2011.useless.words<br>
  the last two words are always the useless ones, so i would like to truncate starting with the second to last period.<br>
  not sure of the wording...<br>
  many thanks</p>