I have several servers that log some data into .csv files and send the files to a NAS. I need to add each .csv file to a corresponding aggregate logfile. Googling has turned up nothing relevant (perhaps I'm not using the right searchstring?)
The way I'm doing this now is by having a script like so:
#! /usr/bin/bash
cat a.log a.csv > a.log
cat b.log b.csv > b.log
cat c.log c.csv > c.log
:
If new logging data is created then I need to edit the script and add a new line.
Surely, it must be possible to do this more easily and flexible. Any hints are appreciated.