#!/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
2万+
4875

被折叠的 条评论
为什么被折叠?