Linuxで2つのコマンド出力結果を比較したいとき
diff <(コマンド) <(コマンド)今回は一つのサーバーに2つのphp-fpmがインストールされており、それぞれの利用可能なphpモジュールを比較したかった。
diff <(/opt/remi/php80/root/usr/sbin/php-fpm -m) <(/opt/remi/php74/root/usr/sbin/php-fpm -m)diffのちょっと見易い表示オプション
diff -y (2行表示) 
diff -c
 
  
  
  
  

コメント