From: Tylman U. <t....@gm...> - 2005-12-08 16:50:10
|
On 12/7/05, you wrote: > xargs -i (or xargs --replace) allow the substituted argument to be > inside the call string. Unfortunately, "-i" implies "-l1", i.e. only one line can be used as an argument per call. Which was my original problem. It also implies -x, i.e. to exit when the args do not fit on a line. Maybe this is all theoretic (20k chars allowed), and you could construct the full sequence of ops to carry out in advance, and pass them as a single argument to XMLStarlet. Let's see... Did some tests along these lines, and it seems that XMLStarlet does not recognise the individual operations when they are passed as a string containing many options. It returns "error in arguments: no -t or --template options found". Like in: me@host:~> xml sel '-t -m "//sth" -v "text()" -n' data.xml error in arguments: no -t or --template options found I know this is more of an xargs problem than an XMLStarlet problem, but it is just sooo appealing to use xargs with it. Thanks, Tylman |