Gossamer Forum
Home : General : Internet Technologies :

I need help with shell script

Quote Reply
I need help with shell script
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
Subject Author Views Date
Thread I need help with shell script narsman 5617 Apr 21, 2004, 7:35 PM
Thread Re: [narsman] I need help with shell script
Alex 5446 Apr 22, 2004, 5:13 PM
Post Re: [Alex] I need help with shell script
narsman 5451 Apr 22, 2004, 7:44 PM