LINUX AWK Tutorial Series | Chapter 1
Hello Everyone, This is my tutorial series on Linux AWK. I will try to cover the AWK concepts chapter wise in this series and will try to explain in an easy method.
Introduction to Linux AWK
Linux AWK is a language for processing text files. AWK is typically used as data extraction and reporting tool. It is a standard feature of most Unix-like operating systems. It consists of a set of actions to be taken against streams of textual data for purposes of extracting or transforming text, for eg: producing formatted reports. The language uses the string datatype, associative arrays, and regular expressions.
AWK was created at Bell Labs in the 1970s and its name is an acronym derived from the surnames of its authors—Alfred Aho, Peter Weinberger, and Brian Kernighan.
Benefits:
- AWK is used for searching and extracting data from a file.
- It can also be used for manipulating the data and generate reports
WHAT CAN WE DO WITH AWK
AWK is like an independent programming language which consists of
- Variables
- Operators
- Conditional Statements
- Loops
- Arrays
- Functions(Built-in and User Defined)
HOW DOES THE AWK PROCESSING WORKS
1) A file will be treated as a sequence of records
2) Each line would be considered as records having multiple fields.
3) It will search for a pattern
4) Performs action as mentioned in the command.
Please follow to get regular updates on this series
If you like please follow and comment
Post a Comment
Post a Comment