问题描述
例子:我有一个文件:FILENAME.EXT,想不.EXT解压文件名
我希望能够使用该扩展名的文件名,只接受没有文件名及其扩展指令。我有一个名为bcheck实用程序,它接受作为它的参数没有扩展名的文件名。使用B检查*。不起作用,因为所有的文件都.DAT或.IDX扩展。这些文件不断被重新命名,因此我需要提供新的文件名B检查,而不必手动输入。
Example: I have a file: FILENAME.EXT and would like to extract FILENAME without the .EXTI want to be able to use the extensionless filename for a command which only accepts filenames without its extensions. I have a utility called BCHECK which accepts as its argument a filename with no extensions. Using BCHECK *. does not work because all the files have .DAT or .IDX extensions. These files are constantly being renamed, thus I need to provide BCHECK with the new filenames without having to manually enter them.
推荐答案
这样做的Unix命令是基本名
。
The Unix command for this is basename
.
这篇关于我怎样才能燮在命令行间preTER和批处理文件preSS文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!