I have folder names as out
in google colab. I want to rename all files in the folder file name look like
name_001_0000_abc.png
name_002_0000_abc.png
name_003_0000_abc.png
and I want to rename it to
name_001.png
name_002.png
name_003.png
I have tried this !rename 's|.*/_0000_abc||' /out/*
!rename 's|.*/_0000_abc||' /out/*
but its not working
你可以试试这个
rename 's/_0000_abc//' name_*
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.