Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A list of the various command line 'util' programs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A list of the various command line 'util' programs
Authored by: wgscott on Jul 20, '05 10:45:48AM

That command doesn't work in any of the shells I tested (zsh, bash, tcsh ) but this does:

apropos util | grep util\(

It produces the longer list as well



[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: wgscott on Jul 20, '05 11:02:51AM
Even that approach misses plenty. This gets a bit closer (needs zsh):

zsh-% foreach utilfile in $(ls /usr/sbin/*util /usr/bin/*util /System/Library/Filesystems/**/*util )
whatis $(basename $utilfile )
end

[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: alcor on Jul 20, '05 12:18:19PM

There is also pmset, which doesn't end in util, but allows changing energy saver settings.



[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: jwbales on Jul 20, '05 01:55:33PM

How about using the trusty find command (all on one line)?

$ sudo find -f /usr/*bin /*bin /System/Library/CoreServices /System/Library/Frameworks -type f \( -name \*util -o -name \*setup\* -o -name \*set \) -print

[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: jwbales on Jul 20, '05 02:02:09PM

Doh! Pasting the command dropped some backslashes!

$ sudo find -f /usr/*bin /*bin /System/Library/CoreServices /System/Library/Frameworks -type f \( -name *util -o -name *setup* -o -name *set \) -print

[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: jwbales on Jul 20, '05 02:09:11PM

Double Doh! fsck'n GUI stuff. :-)
You need to have backslashes before the ( AND ) in case this revision to my revision still doesn't work.

$ sudo find -f /usr/*bin /*bin /System/Library/CoreServices /System/Library/Frameworks -type f \( -name *util -o -name *setup* -o -name *set \) -print

@!$#^!% -- If only I'd read! It plainly says "Yes, those are square brackets".



[ Reply to This | # ]