Awk

From The World according to Vissie
Jump to navigation Jump to search

awk code snippits

Standard opperations

awk '/search_pattern/ { action_to_take_on_matches; another_action; }' file_to_parse

Example

free | awk '/^Mem/ {print $4}'