On Fri, Jun 28, 2002 at 07:56:16PM -0400, Brian Nelson wrote:
| Derrick 'dman' Hudson <dman@dman.ddts.net> writes:
| > On Fri, Jun 28, 2002 at 11:21:18AM -0500, Henning, Brian wrote:
| > | hello all-
| > | I have the task of moving all my hidden files to another
| > | directory. how can i select only these files and not the
| > | standard files.
| > |
| > | ls .* doesn't seem to work.
| >
| > It does (but without "-a" you won't see them), but it includes '.' and
| > '..' also :-) (you don't want to 'cp -r' those).
| >
| >
| > ls -ad ~/.[^.]*
|
| From man ls,
|
| -A, --almost-all
| do not list implied . and ..
Sure, but if you're trying to test your globbing before running
'cp -ar', it isn't helpful :-). Of course, 'echo' could also be used
to test the globbing. :-).
-D
--
A perverse man stirs up dissension,
and a gossip separates close friends.
Proverbs 16:28
http://dman.ddts.net/~dman/
Attachment:
pgpca4THGAo8E.pgp
Description: PGP signature