I have list of files a.xxx a.yyy. a.zzz
I need copy all files by select by extension for example
ls *.xxx | xargs cp a.* dir
I write such code
ls mysql/db/*.MYD | xargs -n1 basename | sed 's/\.MYD//g' | xargs -i cp mysql/db/{}.* new_folder
but get error
cp: cannot stat 'mysql/db/ps_opc_social_customer.*'