Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bmn__
on April 13, 2020
|
parent
|
context
|
favorite
| on:
Renaming files with mv without typing the name two...
`prename` is a thing; much more ergonomic than the solution in the article:
$ prename '$_=lc; s/jpeg/jpg/' IMG0001.jpeg ### IMG0001.jpeg → img0001.jpg
This is probably the most reimplemented program I use, seven times last time I counted.
shawnz
on April 13, 2020
[–]
This doesn't seem more ergonomic to me, and also it is not the same solution (OP also inserted a dash in the filename)
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: