bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-diffutils] bug#72274: option to ignore leading white space


From: Vincent Lefevre
Subject: [bug-diffutils] bug#72274: option to ignore leading white space
Date: Wed, 24 Jul 2024 13:59:33 +0200
User-agent: Mutt/2.2.13+77 (9dc98409) vl-169878 (2024-06-20)

There should be an option to ignore leading white space, like
there is one for trailing white space, and it should probably
be integrated in the -b option.

Basically, I'd like to be able to get only lines that differ by words.

Currently:

cventin:~> diff -bu <(printf "ab cd\n") <(printf " ab  cd \n")
--- /proc/self/fd/11    2024-07-24 13:58:43.515131625 +0200
+++ /proc/self/fd/14    2024-07-24 13:58:43.515131625 +0200
@@ -1 +1 @@
-ab cd
+ ab  cd 

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]