Showing posts with label awk. Show all posts
Showing posts with label awk. Show all posts

Wednesday, August 8, 2018

AWK

Hello Kids,

There is something useful when playing with linux, yep awk command.

here some clue for playing with awk command

awk [option] '/patter/ {action}' [input file]


-F spesify field spearator default space     : awk -F: '{print $1}' /etc/passwd
/patter/ regex pattern                                 : awk -F: '/root/ {print $1}' /etc/passwd