我有以下 struct :
.
├── dag_1
│ ├── dag
│ │ ├── current
│ │ └── deprecated
│ └── sparkjobs
│ ├── current
│ | └── spark_3.py
│ └── deprecated
│ └── spark_1.py
│ └── spark_2.py
├── dag_2
│ ├── dag
│ │ ├── current
│ │ └── deprecated
│ └── sparkjobs
│ ├── current
│ | └── spark_3.py
│ └── deprecated
│ └── spark_1.py
│ └── spark_2.py
我想创建一个仅获取当前Spark作业(job)的新文件夹,我的预期输出文件夹是:
.
├── dag_1
| └── spark_3.py
├── dag_2
└── spark_3.py
我试着用
find /mnt/c/Users/User/Test/ -type f -wholename "sparkjob/current" | xargs -i cp {} /mnt/c/Users/User/Test/output/
尽管我的脚本没有写入文件,也没有返回任何错误.我怎么才能解决这个问题?