Apologies if this has been answered, I'm somewhat new to Linux but I didn't see anything here that was on target.
Anyway, I'm running this command:
find 2013-12-28 -name '*.gz' | xargs zcat | gzip > /fast/me/2013-12-28.csv.gz
The issue is that I need to run this command for about 250 distinct dates, so doing this one at a time is quite tedious.
What I want to do is have a script that will increment the date by 1 day after the "find" and in the file name. I really don't even know what this would look like, what commands to use, etc.
Background:
The find command is being used in a folder that's full of folders, each for 1 day of data. Each day's folder contains 24 subfolders, with each subfolder containing about 100 gzipped CSV files. So the find command is necessary 2 levels up from the folder because it will scan through each folder to combine all the data. The end result is that all the zipped up files are combined into 1 large zipped up file.
If anyone can help it would be hugely appreciated, otherwise I have about 250 more commands to execute, which obviously will suck.