From 57f8454995fdff50da8409583bd8c0da1c194ab7 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Fri, 9 May 2025 21:17:42 +0200 Subject: output each file in a separate file when using folder.sh --- sh/folder.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3