The following bash script moves to the directory contained graphs and then plot the summary chart for the graphs contained RMD.prot* in the name
(cd "${output}/!plots" && exec gracebat RMSD.prot* -legend load -printfile "${output}"/RMSD.prot.png -hardcopy)
The problem that on the xmgrace legend (see example for three different groups of data files) the full name of each plot in provided with its extension, which goes beyond the legend box
Is it possible alternatively to select some pattern (e.g. the pattern matching the following pattern “Four_capital_letters” like “POPC” or “”DPPC“) from each data file for the legend graphs and removes the extension.