Hi,
I tried to use the below command:-
cat bla.txt | sed 's/^[ ]*//' |sed 's/^-/0/'|sed 's/^#####/0/'|sed '/^[^0-9-]/d'|tr ':' "," |tr '' "//"| awk '{printf ("%s\t",$1); }'> output.txt
And I get this output.
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
I would like to remove those whitespaces and get ultimately:-
0,0,0,0,0,0,0,0,0,0,0,0,0,0
Please advise. Thanks.
-Jason