differ=$(diff -rq $1 $2| awk {'print $2,$3,$4'} );
for file in $differ
do
echo $file
done
$file 输出如下
/home/test/system/app.text
and
/home/vgg/system/app.text
/home/test/system/app1.text
and
/home/vgg/system/app2.text
in
/home/test/system:
app.txt
我想让其
vimdiff 旧文件 新文件
确认无误后
cp /home/test/system/app.txt /home/vgg/system/app.txt
如果是只是单独的某个文件有的话 in ...
cp /home/test/system/app.txt /home/vgg/system/app.txt
qq_遁去的一_1
相关分类