Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 493 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 493 Bytes

AWK Scripting Language

To run the commands

Clone this repo

$ git clone https://github.com/abhijithvijayan/FOSS-lab.git .

Then

$ cd AWK
$ awk -f cmd1.awk sample.txt
$ awk -f cmd2.awk sample.txt
$ awk -f cmd3.awk sample.txt
$ awk -f cmd4.awk sample.txt
  • Printing the entire list -> cmd1.awk
  • Printing specific list columns -> cmd2.awk
  • Printing the total salary -> cmd3.awk
  • Printing the Average salary -> cmd4.awk

Output