0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WSLのawkのバージョンを調べてみた(Windows10を無料で入手後):Awk 4.1.4

Last updated at Posted at 2020-06-03

pretty-printがありました。

(参考)Windows7ライセンスの付与されたPCに対してアップグレードをかけるという手法になります。<2020年でもWindows10を無料で入手する方法
https://mazu-bunkai.com/bunkai-wp/windows/9521/
上のパソコンに、WSLをインストールして、awkをみてみた。
(以下一部抜粋)

Ubuntu 18.04.2

NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian

GNU Awk 4.1.4

GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1, GNU MP 6.1.2)
Copyright (C) 1989, 1991-2016 Free Software Foundation.

GNU Awk 4.1.4 help

Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options:                GNU long options: (standard)
        -f progfile                --file=progfile
        -F fs                        --field-separator=fs
        -v var=val                --assign=var=val
Short options:                GNU long options: (extensions)
        -b                        --characters-as-bytes
        -c                        --traditional
        -C                        --copyright
        -d[file]                --dump-variables[=file]
        -D[file]                --debug[=file]
        -e 'program-text'        --source='program-text'
        -E file                        --exec=file
        -g                        --gen-pot
        -h                        --help
        -i includefile                --include=includefile
        -l library                --load=library
        -L[fatal|invalid]        --lint[=fatal|invalid]
        -M                        --bignum
        -N                        --use-lc-numeric
        -n                        --non-decimal-data
        -o[file]                --pretty-print[=file]
        -O                        --optimize
        -p[file]                --profile[=file]
        -P                        --posix
        -r                        --re-interval
        -S                        --sandbox
        -t                        --lint-old
        -V                        --version

To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.

gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.

Examples:
        gawk '{ sum += $1 }; END { print sum }' file
        gawk -F: '{ print $1 }' /etc/passwd
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?