I have a file (user.txt
) with the below content with 90+ users
- example file content
user: Ronaldo id:7 endpoint:manutd.com user: Messi id:30 endpoint:psg.com user: Neymar id:10 endpoint:psg.com
- desired output:
and so on for all the usersRonaldo is in manutd.com and wears no 7 Messi is in psg.com and wears no 30 . .
How can I print this way via a Bash script?
awk
in abash
script... – Kusalananda Aug 30 '21 at 14:55