ページの作成:「== 概要 == wc (word count) コマンドは、テキストファイルの基本的な統計情報を表示するためのコマンドである。<br> オプションを付加しない場合は、行数、単語数、バイト数を表示する。<br> <br> # 使用例: echo "Hello World" > test.txt wc test.txt # 出力 1 2 12 test.txt <br> この出力は左から順に、行数(1)、単語数(2)、バイト数(12)を示しています。 <br><br…」 |
|||
| 27行目: | 27行目: | ||
<br> | <br> | ||
<center> | <center> | ||
{| class="wikitable" | {| class="wikitable" | style="background-color:#fefefe;" | ||
|+ wcコマンドのオプション | |+ wcコマンドのオプション | ||
|- | |- | ||
! オプション ! | ! style="background-color:#00ffff;" | オプション | ||
! style="background-color:#00ffff;" | 説明 | |||
|- | |- | ||
| -l || 行数のみを表示する。 | | -l || 行数のみを表示する。 | ||