Hey all,
I am new to shell scripting and wondering if anyone could help me with my problem.
$ cat text.txt
TYPE 1A,BLUE,RED
TYPE 2B,ORANGE,YELLOW
TYPE 10AB,BLACK,GOLD
TYPE 11BC,GREEN,WHITE
my output should come out to:
TYPE 1,A,BLUE,RED
TYPE 2,B,ORANGE,YELLOW
TYPE 10,AB,BLACK,GOLD
TYPE 11,BC,GREEN,WHITE
Basically, I want to add a "," after the number.
Any input will be greatly appreciated.
Thanks,
Narsman
I am new to shell scripting and wondering if anyone could help me with my problem.
$ cat text.txt
TYPE 1A,BLUE,RED
TYPE 2B,ORANGE,YELLOW
TYPE 10AB,BLACK,GOLD
TYPE 11BC,GREEN,WHITE
my output should come out to:
TYPE 1,A,BLUE,RED
TYPE 2,B,ORANGE,YELLOW
TYPE 10,AB,BLACK,GOLD
TYPE 11,BC,GREEN,WHITE
Basically, I want to add a "," after the number.
Any input will be greatly appreciated.
Thanks,
Narsman