Linux Bash Scripting Tutorial


AWK Programming

AWK is a pattern scanning and processing language.
AWK is a program , which has its own programming language for performing data processing and to generate reports

	syntax:
		while using only pattern

		awk 'pattern'  filename	   # all lines containing pattern will be printed

		while using only Action
	
		awk '{action}' filename    # action will be applied to all lines

		pattern and action 

		awk 'pattern {action}' filename #action will be applied to all lines containing pattern

      

ADS