I have hundred of files with the following format:
2013_01_19_xyxyxyx.txt
2013_01_19_xyxyxyx.txt
2014_03_21_xyxyxyx.txt
2014_03_21_zxzxzxz.txt
2014_03_22_abababa.txt
2014_03_22_cbcbcbc.txt
etc.
I would like to merge files into:
2013_01_19.txt
2014_03_21.txt
2014_03_22.txt
How could I achieve this ?