Live data from Hacker News

Explain Shell

explainshell.com

61–70 of 179 posts

Re: Explain Shell

#61
I agree it's beautiful, and a really great idea. I'll also add my vote that this would make an even better commandline tool.

It had difficulty with:

find . -name ".cpp" | xargs -i grep -His "oops" "{}"

http://explainshell.com/explain?cmd=find+.+-name+%22*.cpp%22...

It seems to think the -His belongs to xargs rather than grep.

Re: Explain Shell

#65

The UI with the svg "wiring" is awesome. You should consider abstracting away that functionality so that it can be reused by other projects. Right now I'm imagining explainphys ;) where each term in a physics equation is explained e.g. The magnetic force felt by a particle of charge q moving with velocity \vec{v} in a magnetic field \vec{B} is \vec{F}_B = q \vec{v} × \vec{B} | | | | |______magnetic field magnetic for…

Agreed. I would love to see this UI on a RegEx parser too.

Re: Explain Shell

#67
post #20
post #16

Earlier quoted context omitted.

Tried it. The explain read-out seemed reasonable. Care to elaborate how it wasn't informative?

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…

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

#68

I totally love this, it's already incredibly helpful! It's super-functional, and frankly it's very, very nice looking. To Mr. Idan Kamara, the creator of this, I have nothing but the highest praise! Now, I hate to get side-tracked, but for much larger commands, like this one: ps x -o "%r %c " | grep "someScript.sh" | awk -F' ' '{print $1}' | xargs -I % /bin/kill -TERM -- -% that has a lot of parts, it can be hard to…

Or you could have the command itself be statically positioned and only have the explanations scroll.

Re: Explain Shell

#69
Great tool. Would have preferred to use it locally without all of those dependencies on a machine without networking. But OTOH having it online means that it is easier to centrally manage and update.
Post reply on HN