Skip to content

CLI - 파일이름의 숫자 부분에 leading zero 를 붙이고 싶다 #86

@practice

Description

@practice
rename -e 's/\d+/sprintf("%03d",$&)/e' -- *.jpg

picture - 5.jpgpicture - 005.jpg로 변경된다.

mac에서 rename은 homebrew로 설치해야 한다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions