小编sri*_*tal的帖子

"${line#*'Caused By'}" != "$line" 在 shell 脚本中是什么意思?

有人可以在shell脚本中解释这意味着什么吗?

while read -r line
do 
  if [ "${line#*'Caused By'}" != "$line" ]; then
    echo "Yes"
  fi
done       
Run Code Online (Sandbox Code Playgroud)

shell shell-script

7
推荐指数
2
解决办法
3363
查看次数

标签 统计

shell ×1

shell-script ×1