awkを使用すると、手動入力は必要ありません。

awkを使用すると、手動入力は必要ありません。

ランニングはどのように行われman awkましたかNo manual entry for awk?正直なところ、私は個人的にAwkをArchlinuxシステムにインストールしたことがありません。ところで、Awkが現在システム(最後にインストールしたシステム)にないことがわかりましたが、おかしいですman awkman gawk一方、うまく動作します。

どんな手がかりがありますか?

バージョンに関連する可能性のあるその他の出力は次のとおりです。

$ awk --version 
GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.0)
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/.

$ which awk
/usr/bin/awk

$ ls -l $(which awk)
lrwxrwxrwx 1 root root 4 Apr 15 07:38 /usr/bin/awk -> gawk

$ which gawk
/usr/bin/gawk

ベストアンサー1

man manマニュアルページは通常/usr/share/man

gawkAwk( , , , ...) の実装が複数あるので、通常使用する実際のmawkAwk (あなたの場合は GNU awk) へのシンボリックリンクです。マンページも同様です。

$ readlink /usr/share/man/man1/awk.1.gz
/etc/alternatives/awk.1.gz
$ readlink /etc/alternatives/awk.1.gz
/usr/share/man/man1/gawk.1.gz

以下でAwkリンクが見つかるかどうかを確認してください/usr/share/man

find /usr/share/man/man1 -path '*/awk*'
  • その場合、リンクが壊れている可能性があります。この場合、そのリンクを削除して必要なマニュアルページへのリンクを作成できます(下記参照)。

  • それ以外の場合、リンクは失われます。どういうわけか削除されたか出荷されませんでした。この問題は、パッケージを再インストールすると解決される可能性があります。それ以外の場合は、手動でシンボリックリンクを作成します。

ln -s /usr/share/man/man1/gawk.1.gz /usr/share/man/man1/awk.1.gz

おすすめ記事