まくまくLinux/Shellノート

行番号付きでテキストファイルの内容を出力する (cat -b)

2005-04-21

cat コマンドには行番号を付加して出力するオプションがあります。

$ cat -b input.txt
2005-04-21