当前位置:网站首页>9.后缀、前缀函数-suffix basename addsuffix addprefix
9.后缀、前缀函数-suffix basename addsuffix addprefix
2022-06-21 17:01:00 【其木王·王子】
1.suffix
名称:取后缀函数——suffix。
2.basename
名称:取前缀函数——basename。
3.addsuffix
名称:加后缀函数——addsuffix。
4.addprefix
名称:加前缀函数——addprefix。
1.suffix
$(suffix <names...>)
名称:取后缀函数——suffix。
功能:从文件名序列<names>中取出各个文件名的后缀。
返回:返回文件名序列<names>的后缀序列,如果文件没有后缀,则返回空字串。
示例: $(suffix dir/dir_test.c filename)返回值是“.c ”。
2.basename
$(basename <names...>)
名称:取前缀函数——basename。
功能:从文件名序列<names>中取出各个文件名的前缀部分。
返回:返回文件名序列<names>的前缀序列,如果文件没有前缀,则返回空字串。
示例: $(basename dir/dir_test.c ./filename)返回值是“dir/dir_test ./filename
3.addsuffix
$(addsuffix <suffix>,<names...>)
名称:加后缀函数——addsuffix。
功能:把后缀<suffix>加到<names>中的每个单词后面。
返回:返回加过后缀的文件名序列。
示例:$(addsuffix .c,foo bar)返回值是“foo.c bar.c”。
4.addprefix
$(addprefix <prefix>,<names...>)
名称:加前缀函数——addprefix。
功能:把前缀<prefix>加到<names>中的每个单词后面。
返回:返回加过前缀的文件名序列。
示例:$(addprefix src/,foo bar)返回值是“src/foo src/bar”。
边栏推荐
- Initialization of typescript class objects
- 2022年R1快开门式压力容器操作操作证考试题库模拟考试平台操作
- Node的字符处理
- CentOS使用composer install 报错 - phpunitphpunit 8
- 字节跳动提出轻量级高效新型网络MoCoViT,在分类、检测等CV任务上性能优于GhostNet、MobileNetV3!
- Tcpserver enable multithreading
- Generic type checking for typescript
- 基于mitmproxy的录制回放接口测试工具
- EtherCAT igh 'Fatal Sync Error'——0x002C,0x001A
- Show you how to distinguish several kinds of parallelism
猜你喜欢
随机推荐
剑指Offer 57. 二叉树的下一个节点
ByteDance proposes a lightweight and efficient new network mocovit, which has better performance than GhostNet and mobilenetv3 in CV tasks such as classification and detection!
最佳网络数据抓包工具mitmproxy
Global installation of node
TypeScript类对象的初始化
How typescript is constructed
Basic data type and structure data type of TS
力扣102. 二叉树的层序遍历
About the basic operation of xlrd Library (for beginners)
【微服务|Nacos】Nacos实现分布式配置中心进阶版
Node module management description file
字节流量生意经:变现趁早、缝钱袋子、All in卖货
Node的全局安装
原码、补码、反码的关系
微生物 个人笔记 taxonkit
Show you how to distinguish several kinds of parallelism
JZ59.按之字型顺序打印二叉树
Vue. js+Node. JS full stack development tutorial: connecting to MySQL
力扣295. 数据流的中位数
Node modular management









