diff나colorddiff를 통해 명령의 실행 결과를 비교하는 방법
diff
와 colordiff
는 일반적으로 두 파일의 차이를 나타내는 명령이지만 다른 명령의 실행 결과와 비교할 수도 있다.두 파일의 차이를 비교하다
Shell
colordiff -u file1 file2
파일과 명령 실행 결과의 차이 비교Shell
colordiff -u file <(command)
두 명령의 실행 결과의 차이를 비교하다Shell
colordiff -u <(command1) <(command2)
Reference
이 문제에 관하여(diff나colorddiff를 통해 명령의 실행 결과를 비교하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://zenn.dev/noraworld/articles/diff-between-commands-instead-of-files텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)