awk_사용법:awk_실행법

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
awk_사용법:awk_실행법 [2017/06/16 10:59] – created minjaeawk_사용법:awk_실행법 [2023/09/05 15:46] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ======실행 방법====== ======실행 방법======
-입력할 데이타 파일을 $input-file$이라 하자. 수행할 프로그램 내요잉 길지가 않다면 다음과 같이 터미널 창에서 따로 파일을 만들지 않고 실행할 수 있다. +입력할 데이타 파일을 **input-file**이라 하자. 수행할 프로그램 내용이 길지 않다면 다음과 같이 터미널 창에서 따로 파일을 만들지 않고 실행할 수 있다. 
-$$awk 'program' input-file1 input-file2$$+<code> 
 +awk 'program' input-file1 input-file2... 
 +</code> 
 + 
 +만약 실행 프로그램 내용이 길다면 코드를 파일로 만들고 **-f 옵션**을 사용하여 아래처럼 실행하면 된다. 
 +<code> 
 +awk -f program-file input-file1 input-file2... 
 +</code>
  • awk_사용법/awk_실행법.1497580163.txt.gz
  • Last modified: 2023/09/05 15:46
  • (external edit)