Re: why 'find / -name *' doesnt work ?



Alberto <hackerduero@xxxxxxxxx> said:
>I try to search for all files in system, and try:
>
>find / -name *
>
>but it doesnt work

Written exactly that way, the shell will first expand the * to list
all the files in your current directory, so what "find" sees is

find / -name file1 file2 file3

which is illegal syntax for "find".

>How do I search for all files ?

Just "find /" - or "find / -type f" if you want to restrict the
results to regular files (no directories, no symlinks, no device nodes, ...).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
.



Relevant Pages

  • Custom shell that auto restarts?
    ... i want to replace the shell with my DVB application. ... i want it to restart ... windows starts i get my custom app, but once closed or crashed i just get a ... conclude that this simply doesnt work. ...
    (microsoft.public.windowsxp.customize)
  • Re: Can someone help me?
    ... Why is it that it doesnt work when I compile the following? ... argument separately but so far it doesnt work and complains that I ... There is no "Shell" object in VB, it is a function, so you would just use... ...
    (microsoft.public.vb.general.discussion)
  • Re: trying to open .CHM help file
    ... command button on my form. ... I have tried using SHELL but that doesnt work, ... something other than App.Path to determine the path to the CHM file). ...
    (comp.databases.ms-access)
  • Re: using tar and Storing backup log and list to seperate files.
    ... > tar: Error exit delayed from previous errors ... any shell that understands "2>&1". ... > well either way doesnt work. ... OFFSET PRINTING? ...
    (comp.unix.shell)
  • Re: using tar and Storing backup log and list to seperate files.
    ... > tar: Error exit delayed from previous errors ... any shell that understands "2>&1". ... > well either way doesnt work. ... OFFSET PRINTING? ...
    (comp.os.linux)