Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwpl.git;a=commitdiff;h=72abdfa58b19d8fe1d5ac081dc774752e2e28361

commit 72abdfa58b19d8fe1d5ac081dc774752e2e28361
Author: James Buren <r...@frugalware.org>
Date:   Thu Sep 17 14:04:28 2009 -0500

strip-trailing-whitespace.sh
* initial draft

diff --git a/tools/strip-trailing-whitespace.sh 
b/tools/strip-trailing-whitespace.sh
new file mode 100755
index 0000000..c5be60f
--- /dev/null
+++ b/tools/strip-trailing-whitespace.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -z "${1}" ]; then
+       echo "Usage: ${0} <file>"
+       exit 1
+fi
+
+exec sed -i "s|\s*$||" "${1}"
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to