From 0de464ff376c5a4138d46f9733d5f7630a35266d Mon Sep 17 00:00:00 2001 From: Andreas Hrubak Date: Tue, 19 Nov 2024 22:33:31 +0100 Subject: [PATCH] can feed input data to foreach in arguments as well --- user-tools/foreach | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/user-tools/foreach b/user-tools/foreach index 9d8c6c8..6519de3 100755 --- a/user-tools/foreach +++ b/user-tools/foreach @@ -52,9 +52,14 @@ Pass B in the arguments after the user-specified I. Pass individual fields of B in the arguments after B if I<--data> is given, or after the user-specified I if I<--data> is not given. -=item -d, --delimiter DELIM +=item -i, --input I -Cut up B into fields at B chars. +Don't read any B from stdin, but take I given at B<--input> option(s). +This option is repeatable. + +=item -d, --delimiter I + +Cut up B into fields at I chars. Default is C<$IFS>. =item -t, --tab @@ -71,7 +76,7 @@ Print something before each command execution. I