[lug] Puzzle with find

Gordon Golding gordongoldin at netscape.net
Thu Jul 7 14:37:52 MDT 2005


I want to find any file whose name contains "install"
I do:  find / -name *install*

This works just fine.  Except if I am in the root directory:

[root at rl6-182-196-dhcp /]# cd -
/home
[root at rl6-182-196-dhcp home]# /usr/bin/find / -name *install*
/sbin/grub-install
.... and so on ....
[root at rl6-182-196-dhcp home]# cd -
/
[root at rl6-182-196-dhcp /]# /usr/bin/find / -name *install*
/sbin/grub-install
.... and so on ....
[root at rl6-182-196-dhcp /]# cd -
/root
[root at rl6-182-196-dhcp ~]# /usr/bin/find / -name *install*
/usr/bin/find: paths must precede expression
Usage: /usr/bin/find [path...] [expression]

There is a '.' in root's path   SHELL=/bin/bash 
Linux 2.6.11-1.14_FC3smp #1 SMP Thu Apr 7 19:38:19 EDT 2005 i686 i686 i386 GNU/Linux

__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp



More information about the LUG mailing list