Scripting in AWK: Difference between revisions

From Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
go back to [[Main Page]], [[Computational Resources]], [[Scripts]]
go back to [[Main Page]], [[Computational Resources]], [[Scripts]]


AWK is a programming language that is designed for processing text-based data, either in files or data streams.
AWK is a programming language that is designed for processing text-based data, either in files or data streams.


"AWK is a language for processing files of text. A file is treated as a sequence of records, and by default each line is a record. Each line is broken up into a sequence of fields, so we can think of the first word in a line as the first field, the second word as the second field, and so on. An AWK program is of a sequence of pattern-action statements. AWK reads the input a line at a time. A line is scanned for each pattern in the program, and for each pattern that matches, the associated action is executed." - Alfred V. Aho
"AWK is a language for processing files of text. A file is treated as a sequence of records, and by default each line is a record. Each line is broken up into a sequence of fields, so we can think of the first word in a line as the first field, the second word as the second field, and so on. An AWK program is of a sequence of pattern-action statements. AWK reads the input a line at a time. A line is scanned for each pattern in the program, and for each pattern that matches, the associated action is executed."  
- Alfred V. Aho
 
==Links==
 
http://www.gnu.org/manual/gawk/gawk.html
 
== Examples ==
 
* [[energies]]
 
* [[Macromodel_to_gaussian]]

Latest revision as of 12:56, 9 February 2010

go back to Main Page, Computational Resources, Scripts


AWK is a programming language that is designed for processing text-based data, either in files or data streams.

"AWK is a language for processing files of text. A file is treated as a sequence of records, and by default each line is a record. Each line is broken up into a sequence of fields, so we can think of the first word in a line as the first field, the second word as the second field, and so on. An AWK program is of a sequence of pattern-action statements. AWK reads the input a line at a time. A line is scanned for each pattern in the program, and for each pattern that matches, the associated action is executed." - Alfred V. Aho

Links[edit]

http://www.gnu.org/manual/gawk/gawk.html

Examples[edit]