Moving folders with pdf files to a new folder

Closed
seamonkey - Mar 8, 2010 at 12:19 AM
sharpman Posts 1021 Registration date Saturday May 23, 2009 Status Contributor Last seen October 20, 2010 - Mar 14, 2010 at 12:44 PM
Hello,

Could someone please give me advice on how to write a few lines to move all folders within a directory containing pdf files to a new folder? I don't know much about linux/unix, and I only know how to list out the pdf files...

ls *-*/*pdf
find ./*-* -name "*.pdf" -print

These two commands display the pdfs, but how do I move the folders containing the pdfs? I want to somehow move the *-* folders.

Thanks!!
Related:

1 response

sharpman Posts 1021 Registration date Saturday May 23, 2009 Status Contributor Last seen October 20, 2010 183
Mar 14, 2010 at 12:44 PM
have a read here

http://windowsbulletin.com/dirman/

it may be of use to you.
0