Is it possible to specify the number of arguments that
xargs takes without doing it explicitly with
-n option, but implicitly with a delimiter, so that the single parameters would be delimited with a space, but a group of arguments that xargs takes at once would be delimited with for example
I want to be able to pass a flexible number of parameters to a script: Those parameters are stored in list like this one:
param1 param2 param1 param2 param3 param1
It should be possible to pass one line of parameters at a time to the script. I do not want to use any proxy scripts and I do not want to write a temporary list of files or command to the disc. I want to read the parameters from the file, alter them "on the fly" (e.g. remove every other line), and redirect them with xargs to the destination script.
What I tried is to use
'\n' as an argument delimiter, but than all params in a line are interpreted as one argument, even though they are delimited with a space.