プログラミング

meldで2つのコマンドの出力を比較

Linuxのコマンドライン、Bash言語において、meldで2つのコマンドの出力を比較する方法について紹介します。

yuis ASUS /mnt/c/pg$ cat > hoge.txt
hoge
hoge
fuga
fuga
foo
foo
yuis ASUS /mnt/c/pg$ cat > hoge02.txt
hoge
fuga
foo
foo
meld <(cat hoge.txt) <(cat hoge02.txt )

https://yuis.xsrv.jp/images/ss/ShareX_ScreenShot_e46675ec-c7aa-4087-b05e-9ef672b11abe.png

<( [commmad] )で、出力をテンポラリファイルとしてmeldに渡しています。

shell – Create a temporary file from a stdout redirect or pipe – Unix & Linux Stack Exchange

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です