LoginSignup
0
2

More than 3 years have passed since last update.

catコマンド

Last updated at Posted at 2021-05-08

ファイル閲覧

$ cat fileA

スクリーンショット 2021-05-08 15.55.17.png

ファイルへの出力(上書き)

$ cat fileB

スクリーンショット 2021-05-08 15.56.19.png

ファイルへの出力(追加)

$ cat fileA >> fileB

まとめて出力できる

$ cat fileA fileB

スクリーンショット 2021-05-08 15.58.11.png

番号つけて出力 numberのn

$ cat -n fileA

スクリーンショット 2021-05-08 15.58.59.png

番号つけて出力(空白行はなし)blankのb

$ cat -b fileA

スクリーンショット 2021-05-08 16.00.29.png

0
2
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
2