awkが新しくなる!? 本家AwkがUnicode (UTF-8)とCSV対応に!

qiita.com

  • awkは使いこなせたら便利だと思うのだけど、文法が特殊、WindowsのCMD版だとさらに記法が特殊、日常利用するほど頻繁には使わないという事情が重なって、毎回一から文法を覚え直すという状態になっていたりします。gawk 3.1.7は頑張って探してきた気がするけど、結局使ってないという。

コマンドラインのやつ。

Z:\>gawk --version
GNU Awk 3.1.7(windows special Nov 24 2009)
Copyright (C) 1989, 1991-2009 Free Software Foundation.

本プログラムはフリー・ソフトウエアです。Free Software Foundation 公表の
GNU General Public License(バージョン2、または、これ以後のバージョン)
に従い再配布、及び/または、変更を加えることができます。

本プログラムは、利用価値があることを期待して配布されていますが、
これは、特定目的に使用可能であること、及び、商用目的に使用できる
ことを暗示するものではなく、いかなる保証も一切ありません。
詳しくは、GNU General Public License を参照してください。

本プログラムには、GNU General Public License が添付されているはずです。
もし、本プログラムと一緒に GNU General Public License を入手しなかった
場合には、
http://www.gnu.org/licenses/ にアクセスしてください。

Ubuntu 22.04 on WSL2のやつ

$ awk --version
GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.1)
Copyright (C) 1989, 1991-2020 Free Software Foundation.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.