Suppose I have a file with this content
2:33:4:F:T:Y
1:10:0:A:B:C:D:E:F:G:
how to change F in second line to R for multiple files using sed?
The desired output would be:
2:33:4:F:T:Y
1:10:0:A:B:C:D:E:R:G:
Edit:
the change should be only in second line of every file, the fields delimited by : so i need the 9th field to be changed, and ignore if the filed have anything but only F.
F? Should all other lines be ignored? Are fields defined by:? Can the field beFRor anything else that includesF?