User Tools

Site Tools


software:cli:bash:diff

Nice stuff to do with diff commands:

Compare output of 2 commands

Basic

diff <(command 1) <(command 2)

Side by side

diff -y <(command 1) <(command 2)

You can control the width of the columns

diff -y --width= XXX<(command 1) <(command 2)

Where XXX is the number of columns

software/cli/bash/diff.txt · Last modified: 2021/12/29 20:09 by warnaud