I have a file and it contains lines
users:x:22845:test1
test-users:x:22845:test2,test3
If I run grep users: file
, it shows both lines becuase both have users:
.
How can I get only users:x:22845:
Thank you
I have a file and it contains lines
users:x:22845:test1
test-users:x:22845:test2,test3
If I run grep users: file
, it shows both lines becuase both have users:
.
How can I get only users:x:22845:
Thank you