#!/bin/sh
aa="/root/aa"
sed '/#define DateTime /'d $aa > temp
printf "#define DateTime /"" >> temp
date +%Y%m%d-%k:%M:%S/" >> temp
cp temp $aa
rm -f temp
#!/bin/sh
aa="/root/aa"
sed '/#define DateTime /'d $aa > temp
printf "#define DateTime /"" >> temp
date +%Y%m%d-%k:%M:%S/" >> temp
cp temp $aa
rm -f temp