Shell commands like to OS/2 shell (or MS PowerShell)
slavazanko at gmail.com
Tue Apr 20 13:26:20 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
>> I also against making it global by default. But this can be done
>> in separate folder, not to standard /usr/bin, and then added for
>> users who want it just add it into PATH.
Yep, of course. This idea unobtrusive and don't hard for realization,
but much harder for standartization between people (and distros) :)
>> I not sure what I want it, but sometimes really hard understand
>> by name what do command and from which area it is.
> That is what man command is for ...
Sometime I know what I want, but I don't know is standart utility
present for this.
For example, I need for grep'ing some user from users list on my host.
How do it with 'man' utility? How I should guess about 'getent
passwd'? and what records more readable:
test $(getent passwd| grep -c '^someuser:') -eq 0 && useradd someuser
test $(system.user.list| grep -c '^someuser:') -eq 0 &&
getent group | grep '^somegroup:'
system.group.list | grep '^someuser:'
For guru's of course much readable first variant :)
Or in additional we may have aliases for:
editor.txt => <your preferred editor>
editor.txt.sed => /usr/bin/sed
editor.txt.vim => /usr/bin/vim
editor.txt.joe => ...
what happens after edit<tab>? You'll see 'editor'. Type 't' and press
<tab>. Press <enter> key for start preferred editor or just press
<tab> key again and you'll see editors (and only editors). Of course,
some utilities may present in few categories... And of course, my
names of programs just for example.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the devel