Moving Only Sub-Directories?

Rudy Vener salt at
Wed May 5 13:47:02 UTC 2010

for i in `ls -d *`
[ -d $i ] && mv  $i  dest/

On Tue, May 04, 2010 at 10:21:52PM -0700, Hart Larry wrote:
> Hi All:  I am surprised the mv command does not seem to have a way to 
> move sub-directories  and leave individual files alone?
> Essentially my e drive is full-and-I want to move these 288 
> sub-directories to another drive--and-keep the individual mp3s where they 
> are now.
> Can some1 please give me an idea of how I can do this in tcsh?
> Only way I can think of is to use L Y N X as a local browser  and tag the 
> directories and move them.  Back in 2004 I tried something like 
> that--and-I lost alot of directories, as lynx deleted the wrong items.
> Thanks so much in advance
> Hart
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at

Rudy Vener, Owner and founder
Pizza Galaxy - Online ordering and Email marketing for 
independent restaurants.
Phone: (203) 230-9662

Restaurant owners, boost your sales with new 
customers, more visits and increased ticket size with 
Pizza Galaxy's Online Ordering and E-mail Marketing.
Get our free report: The Top 7 Ways for Restaurants to get 
Customers Online. Go to 
to get your free copy.

see for yourself  how customers hear about restaurant online 
ordering by following us on  Twitter:

More information about the Blinux-list mailing list