Re: moving everything except a directory

2005-09-19 Thread Stefan Farrenkopf
Hello, you may use find ~ - -exec mv {} BTW: your mail is out of date. best wishes, Stefan --On 30. September 2005 17:40:00 -0500 Brian John <[EMAIL PROTECTED]> wrote: Say I am at ~ and I have 10 directories inside named 1, 2, 3, 4 ,5, 6, 7, 8, 9 and 10. What command can I use to move

Re: moving everything except a directory

2005-09-09 Thread Loren M. Lang
On Fri, Sep 30, 2005 at 05:40:00PM -0500, Brian John wrote: > Say I am at ~ and I have 10 directories inside named 1, 2, 3, 4 ,5, 6, > 7, 8, 9 and 10. What command can I use to move everything but directory > 2? What if I wanted to move everything but directories 2 and 7? > find ~ -mindepth 1

Re: moving everything except a directory

2005-08-31 Thread Michael L. Squires
I use tar cvf //.tar 1 3 4 5 6 7 8 9 10 cd tar xvf //.tar I usually do cd find . ! -type d -print > files.txt vi files.txt - edit out files I don't want tar cvfT //.tar files.txt cd tar xvf //.tar which lets me copy files beginning with "." in the root of the directory (tar will skip these

Re: moving everything except a directory

2005-08-31 Thread Ceasar Navato
--- Brian John <[EMAIL PROTECTED]> wrote: > Say I am at ~ and I have 10 directories inside named > 1, 2, 3, 4 ,5, 6, > 7, 8, 9 and 10. What command can I use to move > everything but directory > 2? You can use combination of different commands to solve this problem. Base on your problem, y

Re: moving everything except a directory

2005-08-30 Thread Emanuel Strobl
Am Samstag, 1. Oktober 2005 00:40 CEST schrieb Brian John: > Say I am at ~ and I have 10 directories inside named 1, 2, 3, 4 ,5, 6, > 7, 8, 9 and 10. What command can I use to move everything but directory > 2? What if I wanted to move everything but directories 2 and 7? See regular expressions,

Re: moving everything except a directory

2005-08-30 Thread Mark Kane
Brian John wrote: Say I am at ~ and I have 10 directories inside named 1, 2, 3, 4 ,5, 6, 7, 8, 9 and 10. What command can I use to move everything but directory 2? mv 1 3 4 5 6 7 8 9 10 new/ What if I wanted to move everything but directories 2 and 7? mv 1 3 4 5 6 8 9 10 new/ I'm not s

moving everything except a directory

2005-08-30 Thread Brian John
Say I am at ~ and I have 10 directories inside named 1, 2, 3, 4 ,5, 6, 7, 8, 9 and 10. What command can I use to move everything but directory 2? What if I wanted to move everything but directories 2 and 7? I'm not sure how to use the mv command to do this in 1 comand. Thanks /Brian ___