Re: how to search for commands

2015-02-24 Thread Dan Douglas
On Tue, Feb 24, 2015 at 4:48 AM, Hans J Albertsson wrote: > Powershell is a very good cmd language, so bash and other unix shells might > do well to adopt some ideas from there. Show-Command is one of the bigger missing killer features. It's not really implementable either since bash can't possib

Re: how to search for commands

2015-02-24 Thread Pierre Gaston
On Tue, Feb 24, 2015 at 1:51 PM, wrote: > hmm. but can I use a wildcard with any of them. For example search for all > commands which contain the word "nice". Which would bring up ionice. > compgen -c | grep nice

Re: how to search for commands

2015-02-24 Thread garegin16
hmm. but can I use a wildcard with any of them. For example search for all commands which contain the word "nice". Which would bring up ionice.

Re: how to search for commands

2015-02-24 Thread Pierre Gaston
On Tue, Feb 24, 2015 at 7:11 AM, Dan Douglas wrote: > On Mon, Feb 23, 2015 at 10:50 PM, wrote: > > How do you search for commands? In powershell you have the get-command > cmdlet. Is there anything equivalent in unix? > > Depends on the type of command. For shell builtins, bash has `help': > >

Re: how to search for commands

2015-02-24 Thread Pierre Gaston
Thanks for your useful input. On Tue, Feb 24, 2015 at 12:54 PM, Hans J Albertsson < hans.j.alberts...@gmail.com> wrote: > Help in bash seems to do most of what's actually needed. > > Hans J. Albertsson > From my Nexus 5 > Den 24 feb 2015 11:48 skrev "Hans J Albertsson" < > hans.j.alberts...@g

Re: how to search for commands

2015-02-24 Thread Hans J Albertsson
Help in bash seems to do most of what's actually needed. Hans J. Albertsson >From my Nexus 5 Den 24 feb 2015 11:48 skrev "Hans J Albertsson" : > Powershell is a very good cmd language, so bash and other unix shells > might do well to adopt some ideas from there. > > Normally, cmd search is only d

Re: how to search for commands

2015-02-24 Thread Hans J Albertsson
Powershell is a very good cmd language, so bash and other unix shells might do well to adopt some ideas from there. Normally, cmd search is only done thru completion in Unix shells, which was an idea from tops 20 exec on Digital Equipment mainframes and early lisp machines. Get-command does more t

Re: how to search for commands

2015-02-23 Thread Dan Douglas
On Mon, Feb 23, 2015 at 10:50 PM, wrote: > How do you search for commands? In powershell you have the get-command > cmdlet. Is there anything equivalent in unix? Depends on the type of command. For shell builtins, bash has `help': $ help '*ad' Shell commands matching keyword `*ad'