0
0

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.

バイナリとテキストファイルの差分比較 Linuxコマンド

Posted at

メモ書きです。

差分を出すコマンド
diff
cmp

diff

テキストファイルを一行ずつ最後まで比較する。

参考
https://linuxize.com/post/diff-command-in-linux/#:~:text=diff%20is%20a%20command%2Dline,applied%20using%20the%20patch%20command

cmp

ファイルを1バイト単位で、比較するコマンド。

違いを見つけると、その位置を表示して終了する。ファイル末尾まで比較したい場合は、以下のオプションを使う。

オプション
-l 違いのあるすべての個所について表示する。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?