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
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
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
--- 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
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,
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
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
___