Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mgizapp/scripts/TrimBlanks.sh')
-rw-r--r--mgizapp/scripts/TrimBlanks.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/mgizapp/scripts/TrimBlanks.sh b/mgizapp/scripts/TrimBlanks.sh
new file mode 100644
index 0000000..78bd28b
--- /dev/null
+++ b/mgizapp/scripts/TrimBlanks.sh
@@ -0,0 +1,2 @@
+sed -e 's/^[ \t]*//' -e 's/[ \t][ \t]*/ /g' -e 's/[ \t]*$//'
+