for i in `ls -d *` do [ -d $i ] && mv $i dest/ done 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@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/blinux-list -- Rudy Vener, Owner and founder Pizza Galaxy - Online ordering and Email marketing for independent restaurants. Phone: (203) 230-9662 Website: http://www.pizzagalaxy.com 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 http://www.pizzagalaxy.com/top7ways.html to get your free copy. see for yourself how customers hear about restaurant online ordering by following us on Twitter: http://www.twitter.com/pizzagalaxy _______________________________________________ Blinux-list mailing list Blinux-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/blinux-list