Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Removing Headers from multiple files while concatenating

$
0
0
HI,
I have a requirement to merge multiple files into one.All the files are of the same type with same number of columns and exact column names as Header.
When i merge all these files using cat command,i see the big file is getting all the header rows as well from multiple files.I tried many different ways but couldn't figure it out the header rows from the files.I only need one header row and the data from all the multiple files.

I have test1 ,test2,test3 ....testn with all the same header row .

cat > $working\test*.csv >$working\bigfile.csv

when i concatenated the bigfile.csv getting all the header records as well.Can anyone please guide me hoe to rid of the header rows from second file onwards,i only need one header row in the bigfile.

Thanks,
Murali

Viewing all articles
Browse latest Browse all 13329

Trending Articles