LoginSignup
0
1

More than 5 years have passed since last update.

awk コマンド

Posted at

awkコマンド

意味

空白などで区切られたテキストを処理するコマンドです。演算機能もあり、プログラミング言語

オプション

-f ファイル名  awkスクリプトが書かれたファイルを指定する
-F 区切り文字  区切り文字を指定する(デフォルトは空白文字)
-v 変数名=値    変数を定義する

基本的な使い方

 「awk 'パターン {アクション}' ファイル名」で、テキストファイルを1行ずつ読み、パターンに合致した行に対して、アクションで指定された内容を実行

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1