I am stuck with it not getting how to proceed with it
I have a folder called : demo
In that their are n number of files , but files will have only one column data and that to vertical form
Need to convert that vertical data like below to horizontal comma separated form without creating new file using sed
Data in file 1 :
ABX
aHA
AHAK
AFGJK
AA
Data in file 2 :
1234
hakk
1567
gahsll
using sed
command both file data should be converted to horizontal comma separated format
My command :
sed -i 's/\n//g' /Demo/*.*
Output :
ABX,aHA,AHAK,AFGJK,AA
Similarly for file 2 as well
Note : Demo folder can contain n number of files