Awk-A Pattern Scanning and Processing Language

نویسندگان

  • Alfred V. Aho
  • Brian W. Kernighan
  • Peter J. Weinberger
چکیده

Command Syntax: awk [-F delim] [-f pgmfile or 'command str'] inputfile awk processes its input one line at a time, applying commands to the line when it matches the pattern associated with the command. Each input line is broken up into fields called $1, $2, …, based on the current value of the FS (field separator) variable. The awk program consists of one or more patterns on separate lines or separated by semicolons. Each pattern has the form: pattern { action } awk Patterns (like grep, sed, and vi) In awk, a pattern is an arbitrary Boolean expression involving regular expressions and relational expressions. Patterns can be any of the following:

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Fast, Flexible Syntactic Pattern Matching and Processing

Program understanding can be assisted by tools that match patterns in the program source. Lexical pattern matchers provide excellent performance and ease of use, but have a limited vocabulary. Syntactic matchers provide more precision, but may sacrifice performance, retargetability, ease of use, or generality. To achieve more of the benefits of both models, we extend the pattern syntax of AWK t...

متن کامل

A Universal Scripting Framework

The “little languages” approach to systems programming is flawed: inefficient, fragile, error-prone, inexpressive, and difficult to compose. A better solution is to embed task-specific sublanguages within a powerful, syntactically extensible, universal language, such as Scheme. I demonstrate two such embeddings that have been implemented in scsh, a Scheme programming environment for Unix system...

متن کامل

NTT Data: Description of the Erie System Used for MUC-6

Erie is a name recognition system developed for the Multilingual Entity Task (MET) in MUC-6. The pattern matching engine recognizes organization, person, and place names along with time and numeric expressions in Japanese text. Although our previous information extraction system Textract performed well in MUC-5, the pattern matching engine, which was written in AWK language, was slow[2]. System...

متن کامل

Distributed Parse Mining

We describe the design and implementation of a system for data exploration over dependency parses and derived semantic representations in a large-scale NLP-based search system at powerset.com. Because of the distributed nature of the document repository and the processing infrastructure, and also the complex representations of the corpus data, standard text analysis tools such as grep or awk or...

متن کامل

Structural Regular Expressions

The current UNIX® text processing tools are weakened by the built-in concept of a line. There is a simple notation that can describe the ‘shape’ of files when the typical array-of-lines picture is inadequate. That notation is regular expressions. Using regular expressions to describe the structure in addition to the contents of files has interesting applications, and yields elegant methods for ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Softw., Pract. Exper.

دوره 9  شماره 

صفحات  -

تاریخ انتشار 1979