I can split a large file into 3 or 4 parts. But is there any way to repeat the headers of csv file?
# split -b 10G user_logs.csv
This will create xaa, xab and xac. The original headers are now part of xaa. How do I copy this line to xab and xac?
# head user_logs.csv
msno,date,num_25,num_50,num_75,num_985,num_100,num_unq,total_secs
rxIP2f2aN0rYNp+toI0Obt/N/FYQX8hcO1fTmmy2h34=,20150513,0,0,0,0,1,1,280.3350
rxIP2f2aN0rYNp+toI0Obt/N/FYQX8hcO1fTmmy2h34=,20150709,9,1,0,0,7,11,1658.9480
Will I have to repeat these 3 lines for each file?
head -1 user_logs.csv > xab_temp
cat xab >> xab_temp
mv xab_temp xab