1

我试图忽略一些以“.NUMBERS”结尾的文件,例如.133443. 我试过这个正则表达式,但它仍然复制文件:

unison -batch -owner -group -times -ignore "Regex ^*\.[0-9]+$" /hadoop/bigdata/giin/data ssh://cnp31ginhortonen1.giin.recouv//hadoop/bigdata/giin/data -prefer newer`

资源 :

[root@cnp31ginhortonen1 .unison]# tree /hadoop/bigdata/giin/data/ 

/hadoop/bigdata/giin/data/
├── aefd.csv
├── aefd.log
├── aefd.xml
├── subdir
│   ├── aefd.csv
│   ├── aefd.log
│   ├── aefd.xml
│   └── TB5E.B01.117.210409074
├── TB5E.B01.117.10409074
└── TB5E.B01.117.210409074
4

0 回答 0