Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed,  4 May 2022 14:24:25 +0200
From: Jules Maselbas <>
Cc: Jules Maselbas <>
Subject: [PATCH v2 1/2] tools: Add a script to remove trailing spaces

Add the script, it will only consider files
tracked by git. Optionaly accept arguments to select the affected path.

Signed-off-by: Jules Maselbas <>
v2: use the --name-only option as suggested by Patrick Oppenlander

 tools/ | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100755 tools/

diff --git a/tools/ b/tools/
new file mode 100755
index 00000000..df3dc9da
--- /dev/null
+++ b/tools/
@@ -0,0 +1,2 @@
+git grep --name-only '[[:space:]]$' -- "$@" | xargs sed -i 's/[[:space:]]\+$//'

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.