summaryrefslogtreecommitdiff
path: root/sh/folder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/folder.sh')
-rwxr-xr-xsh/folder.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/sh/folder.sh b/sh/folder.sh
index dc1c097..fa26f43 100755
--- a/sh/folder.sh
+++ b/sh/folder.sh
@@ -2,5 +2,8 @@
# Fold and remove trailing white-space from files.
-fold -s "$@" | sed 's/[[:space:]]$//'
+for f
+do
+ fold -s "$f" | sed 's/[[:space:]]$//' >$f.fld
+done