CHARLYROSARIO
Programmer
I am working in a ksh script to get one an output csv file of ONLY one line like:
/,45,/usr,56,/var,41
The input file has the following information structure
/,45
/usr,56
/var,41
I was using the following command but it is showing all info overlapped and not separated by comma:
cat dftmp2 | awk '{ for (i=1; i <= NF; i ++) {if (i < NF) printf "%s,",$i;else printf "%s\n",$i}}'`
,/var,41
Any help
/,45,/usr,56,/var,41
The input file has the following information structure
/,45
/usr,56
/var,41
I was using the following command but it is showing all info overlapped and not separated by comma:
cat dftmp2 | awk '{ for (i=1; i <= NF; i ++) {if (i < NF) printf "%s,",$i;else printf "%s\n",$i}}'`
,/var,41
Any help