MAWK(1) USER COMMANDS MAWK(1)
NAME
mawk - pattern scanning and text processing language
SYNOPSIS
mawk [-W option] [-F value] [-v var=value] [--] 'program text' [file ...]
mawk [-W option] [-F value] [-v var=value] [-f program-file] [--] [file ...]
DESCRIPTION
mawk is an interpreter for the AWK Programming Language. The AWK language is useful for manipulation of data
files, text retrieval and processing, and for prototyping and experimenting with algorithms. mawk is a new
awk meaning it implements the AWK language as defined in Aho, Kernighan and Weinberger, The AWK Programming
Language, Addison-Wesley Publishing, 1988. (Hereafter referred to as the AWK book.) mawk conforms to the
Posix 1003.2 (draft 11.3) definition of the AWK language which contains a few features not described in the
AWK book, and mawk provides a small number of extensions.
An AWK program is a sequence of pattern {action} pairs and function definitions. Short programs are entered
on the command line usually enclosed in ' ' to avoid shell interpretation. Longer programs can be read in
from a file with the -f option. Data input is read from the list of files on the command line or from stan‐
dard input when the list is empty. The input is broken into records as determined by the record separator
variable, RS. Initially, RS = "\n" and records are synonymous with lines. Each record is compared against
each pattern and if it matches, the program text for {action} is executed.
awk는 최초에 awk 기능을 디자인한 사람들의 이니셜을 조합하여 만든 명령어
Aho + Weinberger + Kernighan
awk는 "awk programming language"라는 프로그래밍 언어로 작성된 프로그램을 실행
'호기심_메모' 카테고리의 다른 글
[모니터] BenQ GW2780 구입 (0) | 2021.08.12 |
---|---|
[리눅스] Ubuntu vs CentOS (0) | 2021.08.11 |
[dd 명령어] (0) | 2021.08.11 |
[Busybox] Alpine Linux (0) | 2021.08.11 |
[VirtualBox] 설치하기 (0) | 2021.08.11 |