[plug] Filename star

Christian christian at global.net.au
Wed Dec 29 10:52:03 WST 1999


Neil Gerace wrote:
> 
> ----- Original Message -----
> From: Subba Rao <subb3 at attglobal.net>
> 
> > How do you search for files, with meta characters as their names?
> 
> You could try
> 
> $ cd /
> $ ls -R \*
> 
> The backslash makes the shell treat the next character as just a normal one
> without any meta meaning.
> This should find all files whose names are just an asterisk. Likewise for
> files named ? or [ etc.

This is what find(1) is for -- I think you'll find (no pun intended)
that it does a somewhat better job. :-)

Regards,

Christian.


More information about the plug mailing list