Fedora 18
3.10.12-100.fc18.x86_64
你好,
我有很多文件,如下所示。我想通过删除 -unknown-linux-gnu 部分来重命名它们。所以libpjsip-x86_64-unknown-linux-gnu.a
会libpjsip-x86_64.a
我尝试执行以下操作但失败了,替换为空白:
rename 's/-unknown-linux-gnu//' *.a
它失败并显示一条消息rename: not enough arguments
libg7221codec-x86_64-unknown-linux-gnu.a
libpjsip-ua-x86_64-unknown-linux-gnu.a
libgsmcodec-x86_64-unknown-linux-gnu.a
libpjsip-x86_64-unknown-linux-gnu.a
libilbccodec-x86_64-unknown-linux-gnu.a
libpjsua-x86_64-unknown-linux-gnu.a
libmilenage-x86_64-unknown-linux-gnu.a
非常感谢您的任何建议,