摘要: 使用以下方法不行 sed -i 's/\$this_year/\$next_year/g' schema.xml.$next_year 使用双引号,变量外边不要使用小括号要是大括号 #!/bin/bash this_year=$(date +%Y) next_year=$(date -d next- 阅读全文
posted @ 2021-12-23 15:38 paul_hch 阅读(197) 评论(0) 推荐(0) 编辑