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.
「app.js」のような文字列をbashで「app.min.js」に名前変更する最も簡単な方法は何ですか?
私はawk正規表現または私ができる何かを望んでいました:
s/(.*?)\.js/$1.min.js/
これは1つの方法です。
string=app.js string=${string/./.min.}