0

How to find a particular line using awk command

I need to find a particular in /etc/passwd it showing all the line as a single line, how to separate and fetch a particular line using awk command?

awk Add a comment
michael
asked Oct 26 2019

Answer

0

use the following command to separate the line

awk -F: '{print $1}' /etc/passwd

output


tcpdump
user
mysql
apache
elasticsearch
kibana
Add a comment
linuxhelp
asked Oct 26 2019
edited Oct 26 2019
Post your Answer