0
rated 0 times
[
0]
[
0]
/ answers: 1 / hits: 1208
/ 10 Months ago, mon, december 12, 2022, 11:21:07
I have a file which is like this
user:[dgalanos] rid:[0xa35]
user:[roleary] rid:[0xa36]
user:[smorgan] rid:[0xa37]
How can i print only the usernames like this
dgalanos
roleary
smorgan
I tried
cat users.txt | awk -F ':' '{print $2 > "users3.out"}'
But it did not give me the correct result i expected.
More From » awk