0
2

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.

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](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/571973/a72ed2e9-fe00-4864-ef57-4e490c6f4f1e.png)

番号つけて出力 numberのn

$ cat -n fileA


![スクリーンショット 2021-05-08 15.58.59.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/571973/49657042-1e63-85e3-33df-44dc5f02a253.png)

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

```````
$ cat -b fileA
```````
![スクリーンショット 2021-05-08 16.00.29.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/571973/ade3be96-0e07-e47d-f64d-5306137e9ce7.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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?