Copy files and subdirs from dir to a new dir

Hello Comunity

I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside.

it called : cpflatdir src_dir dest_dir

Pleaze help me!

Thank you in advise

Given what you said:

find ${src} -type f -exec cp {} ${dst} \;

Thank you Aia for ur answer.

I would like to copy the media sub directory with Lst_feb file without audio and video sub directory, like the picture. This is the only difficult part of code.

Are there any command to cp directory only with file/files without subdirectories ?

Thank you