22 January 2011

LINUX - awk

To print single column from a text file
#awk -F: '{print $1}' /etc/passwd

To print multiple columns from a text file
# awk -F: '{print $1,$7}' /etc/passwd

No comments:

APACHE - failed to start

[On] Red Hat Enterprise Linux Server release 7.4 (Maipo) Apache was not running and attempt to start the httpd service failed. The natural t...