#!/bin/sh
#精确匹配;
update_start=$(awk -F = '$1=="update_start" {print $2 }' conf)
update_sta=$(awk -F = '$1=="update_sta" {print $2 }' conf)
fail_list=$(awk -F = '$1=="fail_list" {print $2 }' conf)
echo "update-start==$update_start "
echo "update_sta==$update_sta "
echo "fail_list==$fail_list "
#修改域;指定分割符
awk -F = '{OFS="=";if($1=="update_start")$2="xxxx";print;}' conf > tmp
more tmp > conf
阅读(1185) | 评论(0) | 转发(0) |