[Bash question] Recursive copying of certain file types in nested folders using wildcards via /r/learnprogramming


[Bash question] Recursive copying of certain file types in nested folders using wildcards

How can I combine recursive copying and usage of wildcards to extract a certain file type from nested folders?

Data structure of the source folder is similiar to this:

home | |_____FolderA | |____one.txt |____Folder B | |____two.txt 

The destination folder should look like this:

dest_folder | |_____one.txt |_____two.txt 

Any advice is appreciated.

Submitted July 12, 2017 at 09:36AM by Ginkgopsida
via reddit http://ift.tt/2sQ5yk0

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s