awk_사용법:awk_실행법

This is an old revision of the document!


실행 방법

입력할 데이타 파일을 input-file이라 하자. 수행할 프로그램 내용이 길지 않다면 다음과 같이 터미널 창에서 따로 파일을 만들지 않고 실행할 수 있다.

awk 'program' input-file1 input-file2...

만약 실행 프로그램 내용이 길다면 코드를 파일로 만들고 -f 옵션을 사용하여 아래처럼 실행하면 된다.

awk -f program-file input-file1 input-file2...
  • awk_사용법/awk_실행법.1517299088.txt.gz
  • Last modified: 2023/09/05 15:46
  • (external edit)