Cloudkul Support

How to use ‘awk’ command in place of ‘grep’ and ‘cut’ commands ?

For Example-:

To print name of users from /etc/passwd having /usr/sbin/nologin we can use
only awk command rather using grep and execute it as-

 

Is this article is helpful?

People like and 0 people dislike.

If result is not found or irrelevant, Please contact us.

Submit your request