Posted on 2009-07-09
I have a file with a sequence of hex numbers, one per line. I need to get them all on one line, comma delimited. I can get the comma on the end, but how do I join up all my little scalars into an array and print?
So far I have perl -wnl -e 's/$/,/g;print' my-devs which gives me
I want 0001,0002