I have a series of files in a series of directories, I would like to merge the contents of all the files into one big fat csv file, which would go in a new location. files are csv formatted, want to make a giant csv that will be used to input the data from the files into sql.
I would like to make it recursive from dirpath to end of tree and put the file generated into a different location..I have something like this which creates the csv but I am stumped on how to make it a regular script.
perl -F -lane '@F %2 and push @D,{q{Stamp},@F} or $D