여러 파일명 변경

1 개요[ | ]

여러 파일명 변경

2 예시 1[ | ]

  • F00001-0708-CS-akgdlaul.txt → F0001-0708-CS-akgdlaul.txt
  • F00001-0708-RG-biasliuyda.txt → F0001-0708-RG-biasliuyda.txt
  • F00001-0708-VF-hioulgigl.txt → F0001-0708-VF-hioulgigl.txt
# Ubuntu/Debian
rename s/0000/000/ F0000*.txt
# CentOS/RHEL
rename 0000 000 F0000*.txt

3 예시 2[ | ]

  • apps_v1_deployment_myapp.yaml → deployment_myapp.yaml
  • networking.k8s.io_v1_ingress_myapp-ingress.yaml → ingress_myapp-ingress.yaml
  • v1_configmap_myapp-config.yaml → configmap_myapp-config.yaml
  • v1_configmap_myapp-literals.yaml → configmap_myapp-literals.yaml
  • v1_configmap_myapp-files.yaml → configmap_myapp-files.yaml
  • v1_service_myapp.yaml → service_myapp.yaml
  • batch_v1beta1_cronjob_mycronjob.yaml → cronjob_mycronjob.yaml
# Ubuntu/Debian
rename 's/^.*v1(|beta1)_//g' *.yaml
# CentOS/RHEL/Ubuntu/Debian
find *.yaml -type f | perl -pe 'print $_; s/^.*v1(|beta1)_//' | xargs -n2 mv

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}