I need some help with getting rid of all the driver names from the file using a sed command. I've tried multiple different commands but I cant get it to function properly.
Input:
Rank Country Driver Races Wins
1 [United_Kingdom] Lewis_Hamilton 264 94
2 [Germany] Sebastian_Vettel 254 53
3 [Spain] Fernando_Alonso 311 32
4 [Finland] Kimi_Raikkonen 326 21
5 [Germany] Nico_Rosberg 200 23
I've tried using cat f1.txt| sed -r 's/\S+//3' but it does not keep the formatting I would like
what i would like it to do
Input:
Rank Country Driver Races Wins
1 [United_Kingdom] 264 94
2 [Germany] 254 53
3 [Spain] 311 32
4 [Finland] 326 21
5 [Germany] 200 23