Ad

michael
asked Oct 26 2019
Answer
use the following command to separate the line
awk -F: '{print $1}' /etc/passwd
output
tcpdump
user
mysql
apache
elasticsearch
kibana

linuxhelp
asked Oct 26 2019
edited Oct 26 2019
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?