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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org