I want to replace the header in file1.csv with the header in file2.csv
file1.csv
"a","b","c"
file2.csv
"x","y","z"
I want file1.csv's header as
"x","y","z"
Please tell me how to do it? I tried
sed -i "1 s/^.*$/$file2.csv/" file1.csv
But it doesn't take the "" (quotes). I want the header with the quotes.