Thursday 9 August 2012

Introduction

 INTRODUCTION:

This Blog is a tutorial Describing functionality of awk.
We have shown over 50 examples to describe simple as well as complex concepts of awk. Make use of the Tabs in sequence to go through the examples.


Please feel free to comment,suggest and criticise on any part of this blog.


AWK normally works with files as input.
We have used a test file in most of the examples.

You can Create a similar file with name 'test1' and start using the examples shown right away.

Following is the test file we used:

sukul 8149158828 mumbai 100/900/200
uma 8149122222 chennai 100/800/300
bhanu 8097123451 Jhansi 200/1000/500
shushant 7798977047 nepal 200/9000/100
himanshu 9090909090 bokharo 100/800/300

bos90631:sm017r more test1
sukul 8149158828 mumbai 100/900/200
uma 8149122222 chennai 100/800/300
bhanu 8097123451 Jhansi 200/1000/500
shushant 7798977047 nepal 200/9000/100
himanshu 9090909090 bokharo 100/800/300

bos90631:sm017r wc -l test1
5 test1