Copy a particular directory on linux

To copy a particular directory on linux you can use this commando

 

cp -r $(find /srv/pec/ComuneComo/PEC_comune_como -regextype posix-extended -regex ‘^.*[0-9]{17}’) /srv/pec_pavia/ComumeComoMigrazione

 

Find a directory with some rule.