cat solution.sh #!/bin/sh MY_DATE=$(date) sed -i -r 's/^(CURRENT_TIME =).*/\1 $MY_DATE/' test.txt. The script above isn't hard to understand ...
確定! 回上一頁