On Saturday 01 September 2007 01:04, Anders Johansson wrote:
> On Saturday 01 September 2007 00:41:31 primm wrote:
> > I've 800 or so files and folders in a folder called nonmembers. I mkdir
> > another folder in the folder nonmembers called members. I want to copy
> > all the 800 files in nonmembers to members. I'm in the nonmembers folder
> > at the command line. What do I type? Sounds easy doesn't it. I tried cp
> > -a * members but that of course includes members. I suppose I want to say
> > 'copy everything in the nonmembers folder that was there before I made
> > the members folder to the members folder'. If I had a gui I would simply
> > drag and drop.
>
> The quickie way would be to do
>
> export GLOBIGNORE=members
>
> and then do "cp -a * members" again
>
> Another quickie would be to name it .members while you're copying, since *
> doesn't include files that start with a dot
>
> Beyond that we're into regular expressions, and then it starts getting
> messy :)
>
> Anders


Thanks everyone. It was the dot that did it.

Have one on me. Love from Lynn.
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to