Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
2
Newest
 Teacher
Impact
~724 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Jun
18
comment How do I copy only subdirectories but exclude other files in Linux?
Ah - so if you want just the destination folder to contain the xml files and the subdirectories then drop the last "images/" from the end of the second command. Make sure that ../destination, and if required ../destination/images exist beforehand. "mkdir -f ../destination/images"
Jun
18
awarded  Teacher
Jun
18
revised How do I copy only subdirectories but exclude other files in Linux?
added 20 characters in body
Jun
18
awarded  Editor
Jun
18
revised How do I copy only subdirectories but exclude other files in Linux?
Previous code did not work. Tested this and it flattened the directory structure - so rewriting my answer
Jun
18
answered How do I copy only subdirectories but exclude other files in Linux?