Modify file

Hi,

I have a file that looks like this:

27+:<10,289808,1>
31+:<11,1445372,1>
33-:<7,1014101,2>
35+:<11,728811,1>
36-:<11,1445205,0>
37+:<11,1445792,2>

and I want to change it to this:

+  10  289808
+  11  1445372
-   7    1014101
+  11  728811
-   11  1445205
+  11  1445792

So it ends up as a tab separated file with some removals to the line.

Thanks

It's very easy with sed or perl or awk. Why don't try it yourself?

By the way, you've got an interesting statistics. You ask questions (a lot), get answers and:

Posts: 79
Thanks: 0

1 Like
sed "s#+:<#\t#g"

Regards
Peasant.

(sorry yazu didn't see the post)

1 Like
sed 's/^[0-9]*//;s/:/ /;s/</ /;s/,/ /g' inputfile | awk '{NF-=1;print}'
2 Likes