GNU Awk 3.0.6 + multi-byte extension 1.15
まず 最初に
Pmt> echo 'this line of data is ignored' > test
Pmt> awk '{print "Hello,world"}' test
Hello,world
/* ファイル test の中身は 関係ないようだ */
Pmt> echo "Hello,world" >test2
Pmt> cat test2
Hello,world
Pmt> awk '{print}' test2
Hello,world
/* ファイル test2 の中身が 出力された */
/* 待機している */
Pmt> awk '{print "Hello,world"}' /* 色々入力してみる */
quit /* 色々入力してみる type input */
Hello,world /* 画面に出てくる screen out put */
end /* 色々入力してみる type input */
Hello,world /* 画面に出てくる screen out put */
stop /* 色々入力してみる type input */
Hello,world /* 画面に出てくる screen out put */
/* Input Ctrl + D */
Pmt> awk '{print}'
Here comes the sun. /* type input */
Here comes the sun. /* screen out put */
/* Input Ctrl + D */
Pmt>awk 'BEGIN{ print "Hello,world"}'
Hello,world
Pmt>
入力駆動型
にゃんたろう 拝!
GNU Awk 3.0.6 + multi-byte extension 1.15
2006年12月26日 (火) 23:29:40 JST 作成