📌  相关文章
📜  bash 替换字符串的开头 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:47.838000             🧑  作者: Mango

代码示例3
$ cat shortest.sh
#! /bin/bash

filename="bash.string.txt"

echo ${filename#*.}
echo ${filename%.*}

$ ./shortest.sh
After deletion of shortest match from front: string.txt
After deletion of shortest match from back: bash.string