Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
What's the quickest way to take a string like "app.js" and rename it to "app.min.js" in bash?
I was hoping for an awk regex or something where I can do:
s/(.*?)\.js/$1.min.js/
这是一种方式:
string=app.js string=${string/./.min.}