3 ms·
Very cool - but support for xargs seems to be broken. find . -type f | xargs wc -l http://explainshell.com/explain?cmd=find+.+-type+f+%7C+xargs+wc+-l http
by etrain 13y ago
Very cool - but support for xargs seems to be broken.
find . -type f | xargs wc -l
http://explainshell.com/explain?cmd=find+.+-type+f+%7C+xargs+wc+-l http://explainshell.com/explain?cmd=find+.+-type+f+%7C+xargs...
- un1xl0ser 13y agoI would expect xargs to stop processing arguments strictly after the first non-flag argument. Arguments to xargs do appear to be parsed, example below: http://explainshell.com/explain?cmd=find+%2F+-type+f+-print0+%7C+xargs+-0+grep+heythere http://explainshell.com/explain?cmd=find+%2F+-type+f+-print0...
- etrain 13y agoRight, but in this example it's not telling me what the "grep" is doing. Admittedly xargs is a weird case where the arguments to the program are invoked as a program, but I'd say it shows pretty frequently in these type of "what does this long freaking command do?" situations. Maybe worth adding a special case for.