diff options
-rwxr-xr-x | sh/folder.sh | 5 |
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 |