News for hackers. Stuff that matters.
Re:Explain Shell by evanspa on Monday December 02, 2013 @01:06PM (#6835306)
Tried it. The explain read-out seemed reasonable. Care to elaborate how it wasn't informative?
Re:Explain Shell by jff on Monday December 02, 2013 @01:12PM (#6835340)
The explanation for "du" and its -a flag make it sound like I'm trying to find out how much disk space my files are using. Fine, that's the usual usage, but the point here is that it lists out every file under the current directory.

The bigger problem is grep. We're told that grep prints lines matching a pattern, great. But then the explanation of the arguments makes it sound, to the uninitiated, like I'm giving "foo" as the filename, because the site doesn't include the actual grep syntax.

It doesn't really explain what the command line is doing. It does seem to do a decent job of telling someone who's already fluent in shell usage the specific meaning of all options given. That's actually pretty important these days where any given GNU util will have flags for every single letter of the alphabet in both upper and lower case.

Re:Explain Shell by ygra on Monday December 02, 2013 @02:54PM (#6836062)
That's not really solvable in this case, though. All explainshell has are the man pages of the commands. It cannot know how they will interact with each other. It should be at least semi-possible in PowerShell (because you have output type information and parameter type information), but I hit a roadblock with ExplainPS a while ago and haven't had the time to resurrect it.
Re:Explain Shell by wilcox on Tuesday December 03, 2013 @12:46AM (#6838814)
Perhaps you should go for find . / -name filename instead. Using du -a | grep filename works for sure, but it a bit of hack.