SHELL替换字符串内容

| |
[不指定 2023/08/11 17:22 | by 刘新修 ]
C#代码
  1. //http://dl.ktm1234.com/injured/work-litigation/  
  2. //http://dl.ktm1234.com/XXX/jiaye/injured/work-litigation/  
  3. var="http://dl.ktm1234.com/injured/work-litigation/";var2=${var//com/com\/XXX\/jiaye};echo $var2;  

结果:http://dl.ktm1234.com/XXX/jiaye/injured/work-litigation/

Linux/Unix | 评论(0) | 引用(0) | 阅读(732)