I have a text file like this:
1 http http 3 4 5
2 dns dns 4
3 ftp ftp 4 5 6 8
I want the output to be like this:
1 HTTP http 3 4 5
2 DNS dns 4
3 FTP ftp 4 5 6 8
I want to change the second field from lower-case into upper-case and only the second field.
Note that the number of fields in a certain line is not fixed.
Can I accomplish this goal using awk
?