Re: How do I - Directory manipulation
On Sun, Jun 07, 1998 at 10:36:08AM +0000, email@example.com wrote:
> AFter using emacs some mysterious directories have appeared that I cannot remove
> #this dir# How do I get rid of these?
rm \#this\ dir\#
would escape the special characters. There are other solutions to escape
characters from the shell, for example, using quotes.
> I downloaded a file using lynx and now cannot find it. I tried 'find' but could not use
> woldcards. Is there a program similar to 'whereis' that will allow me to use wildcards and
> search all directories and subdirectories?
Sure you can use wildcards.
* find / -name "a*" -print
will find all files beginning with an "a".
>From the man page:
Base of file name (the path with the leading direc
tories removed) matches shell pattern pattern. The
metacharacters (`*', `?', and `') do not match a
`.' at the start of the base name. To ignore a
directory and the files under it, use -prune; see
an example in the description of -path.
* locate abc
Will locate all files that have abc in the path+filename.
And if you really don't know:
* find / | grep reg-exp -
Will let you use a regular expression.
Please try "man find" and "man locate" and "man grep" for details.
"Rhubarb is no Egyptian god." Debian GNU/Linux finger brinkmd@
Marcus Brinkmann http://www.debian.org master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de for public PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ PGP Key ID 36E7CD09
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com