1.创建目标目录
mkdir -p /tmp/mytest1
2、复制符合条件文件或目录到目标
cp -ar p*[^[:digit:]] /tmp/mytest1
3、显示目标目录结果
[root@centos8 mytest1]# pwd
/tmp/mytest1
[root@centos8 mytest1]# ll
total 52
drwxr-xr-x. 2 root root 4096 Nov 18 13:34 pam.d
-rw-r--r--. 1 root root 68 May 14 2019 papersize
-rw-r--r--. 1 root root 2554 Nov 18 13:34 passwd
-rw-r--r--. 1 root root 2505 Nov 18 13:26 passwd-
-rw-r--r--. 1 root root 1362 May 14 2019 pbm2ppa.conf
-rw-r--r--. 1 root root 2872 May 14 2019 pinforc
drwxr-xr-x. 2 root root 27 Nov 18 13:20 pipewire
drwxr-xr-x. 14 root root 196 Nov 18 13:42 pki
drwxr-xr-x. 2 root root 28 Nov 18 13:19 plymouth
drwxr-xr-x. 5 root root 52 Nov 18 13:17 pm
-rw-r--r--. 1 root root 6300 May 14 2019 pnm2ppa.conf
drwxr-xr-x. 2 root root 6 Jan 19 2021 popt.d
drwxr-xr-x. 2 root root 24 Nov 18 13:18 prelink.conf.d
-rw-r--r--. 1 root root 233 Sep 10 2018 printcap
-rw-r--r--. 1 root root 2123 May 15 2020 profile
drwxr-xr-x. 2 root root 4096 Nov 18 13:26 profile.d
-rw-r--r--. 1 root root 6568 Sep 10 2018 protocols
drwxr-xr-x. 2 root root 79 Nov 18 13:20 pulse