User name = user1
Date expire = Oct 20, 2019 我想通过sed找到Date expire并用其他东西替换=的右边,它是日期。我知道sed 's/foo/bar/g'的基本用法,但它是用于固定字符串的。我想通过检测一个特殊字符来改变句子的一部分。 我该怎么做呢?
我有一个名为varname的变量,它具有诸如/这样的字符。等等,要求与sed命令一起使用。这就是我所做的。echo Hello admin, please add , after you enter the image namesed -i "s/my-images=/&$/home/myconfig有max-mb=1000
my-images=custom