LoginSignup
0
0

More than 3 years have passed since last update.

diff や colordiff でコマンドの実行結果と比較する方法

Last updated at Posted at 2021-05-01

diffcolordiff は、通常、2 つのファイルの差分を表示するコマンドだが、他のコマンドの実行結果と比較することもできる。

2 つのファイルの差分比較

Shell
colordiff -u file1 file2

ファイルとコマンドの実行結果の差分比較

Shell
colordiff -u file <(command)

2 つのコマンドの実行結果の差分比較

Shell
colordiff -u <(command1) <(command2)
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