Snippets: Difference between revisions

From fakedWiki
Jump to: navigation, search
(Created page with "Copy certain folders from a tree with full path <pre> find htdocs/ -type d -iwholename "*→‎src: *" -exec mkdir -vp /srv/_tmp/{} \; find htdocs/ -type f -iwholename '*→‎src: *' -p…")
(No difference)

Revision as of 13:37, 12 August 2011

Copy certain folders from a tree with full path

find htdocs/ -type d -iwholename "*/*src*/*" -exec mkdir -vp /srv/_tmp/{} \;
find htdocs/ -type f -iwholename '*/*src*/*' -print0 | xargs -0 -I{} cp -v "{}" "/srv/_tmp/{}"