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
No comments:
Post a Comment