Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

increase characters visible in diff -y columns

Tags:

bash

diff

Is it possible to increase the amount of characters visible per line, per column when running diff -y <fooA.txt> <fooB.txt)? I have files with very long names and it is unclear which ones are being compared when the names are truncated in the columns.

ex. 8d14a361aefb7796de07e9ef4aa5d2f4 2014_141_1_1__Studs_Place_c | 77831755d1f1db1c726d0964c807b74b 2014_141_1_1__Studs_Place_c

like image 246
Bleakley Avatar asked Mar 26 '26 00:03

Bleakley


1 Answers

From man diff:

   -W NUM  --width=NUM
         Output at most NUM (default 130) print columns.
like image 181
Charles Duffy Avatar answered Mar 28 '26 03:03

Charles Duffy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!