I have files with naming convention of this pattern:
bond_7.LEU.CA.1.dat
bond_7.LEU.CA.2.dat
bond_7.LEU.CA.3.dat
bond_12.ALA.CB.1.dat
bond_12.ALA.CB.2.dat
bond_12.ALA.CB.3.dat
...
I want to concatenate all files of the same group into a single one. For example:
cat bond_7.LEU.CA.*.dat > ../bondvalues/bond_7.LEU.CA.1_3.dat
There's large number of these files. How can achieve this with a bash script?
bond_7.LEU.CA.1_3.dator wouldbond_7.LEU.CA.datalso do? The latter is easier. – Dennis Jun 02 '12 at 18:48