]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
strip_trailing_whitespace.sh
authorSage Weil <sage@newdream.net>
Sat, 19 Jan 2008 16:25:47 +0000 (08:25 -0800)
committerSage Weil <sage@newdream.net>
Sat, 19 Jan 2008 16:25:47 +0000 (08:25 -0800)
src/script/strip_trailing_whitespace.sh [new file with mode: 0755]

diff --git a/src/script/strip_trailing_whitespace.sh b/src/script/strip_trailing_whitespace.sh
new file mode 100755 (executable)
index 0000000..8acc4de
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cat $1 | sed 's/[ \t]*$//' > $1.new && mv $1.new $1