GNU bug report logs -
#72274
diff: option to ignore leading white space
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <at> 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)
This bug report was last modified 354 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.