i have some csv files in a directory which have sub-directories also. now how can i merge all .csv files in to one with a single header.
for example:
have some 4 files.
1.csv--------name,age,sal
abc,25,4000
2.csv--------name,age,sal
vgd,32,3500
3.csv--------name,age,sal
hfg,20,5000
4.csv--------name,age,sal
asd,15,2000
now my output file should be like
5.csv----------name,age,sal
abc,25,4000
vgd,32,3500
hfg,20,5000
asd,15,2000
and please explain the code for me. as i am new to scripting. thank you in advance
No Answer is Posted For this Question
Be the First to Post Answer
How do you write a for loop in shell?
How do you stop a process?
I am configuring my anaconda file in linux, i want to use as kickstart file, in post installation how can i edit file or change the content of file and save it.
How do you find out your own username?
How do you read keyboard input in shell scripts?
How do you stop all the processes, except the shell window?
How do you fire a process in the background?
How do you find out about all running processes?
How do you search for a string inside a directory?
What’s the command to find out today’s date?
How do you remove a file?
How do you list currently running process?