I have a bunch of *.csv files that use headers. Right now the files have headers and the same number of lines of data. I need to erase the data in these files, so I figured I could just overwrite the header into the files. I have file A
set up properly with the header. How can I cat
A
into all the other csv files?
Alternatively, how could I delete the last X number of lines from the files? The path for the files is */*.csv