Moving folders with pdf files to a new folder

Closed
seamonkey - 8 Mar 2010 à 00:19
sharpman Posts 1021 Registration date Saturday 23 May 2009 Status Contributor Last seen 20 October 2010 - 14 Mar 2010 à 12:44
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 23 May 2009 Status Contributor Last seen 20 October 2010 183
14 Mar 2010 à 12:44
have a read here

http://windowsbulletin.com/dirman/

it may be of use to you.