效果:
在应用商店安装beyond compare,自行激活
一、创建文件:/root/.bcompare/.bcomparelater
#!/bin/sh
comparefile=$(echo $@ | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ",$1 }' | sed -e s#\"\"##)
echo $comparefile > /root/.bcompare/.bcomparetxt
创建软连接:
ln -s /root/.bcompare/.bcomparelater /usr/local/bin/bcomparelater
二、创建文件:/root/.bcompare/.bcomparewith
arg2=$(cat /root/.bcompare/.bcomparetxt)
arg1=$(echo $@ | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ",$1 }' | sed -e s#\"\"##)
bcompare $arg2 $arg1
ln -s /root/.bcompare/.bcomparewith /usr/local/bin/bcomparewith
三、创建文件:/root/.bcompare/.bcomparediff
#选中两个文件才比较
if [ $# -eq 2 ]
then bcompare $1 $2
fi
ln -s /root/.bcompare/.bcomparediff /usr/local/bin/bcomparediff
四、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/open-by-bcomparelater.desktop :
[Desktop Entry]
Name=晚点比较
Type=Application
X-DFM-MenuTypes=SingleFile;SingleDir
Exec=bcomparelater %u
Icon=bcompare
五、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/open-by-bcomparewith.desktop :
Name=现在比较
Exec=bcomparewith %u
六、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/pen-by-bcomparediff.desktop :
Name=比较差异
X-DFM-MenuTypes=MultiFileDirs
Exec=bcomparediff %U
商店没有啊,win下我一直用这个同步资料到U盘,现在换了UOS,没有找到同步的,我的资料都插USB用
光荣榜
效果:
在应用商店安装beyond compare,自行激活
一、创建文件:/root/.bcompare/.bcomparelater
#!/bin/sh
comparefile=$(echo $@ | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ",$1 }' | sed -e s#\"\"##)
echo $comparefile > /root/.bcompare/.bcomparetxt
创建软连接:
ln -s /root/.bcompare/.bcomparelater /usr/local/bin/bcomparelater
二、创建文件:/root/.bcompare/.bcomparewith
#!/bin/sh
arg2=$(cat /root/.bcompare/.bcomparetxt)
arg1=$(echo $@ | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ",$1 }' | sed -e s#\"\"##)
bcompare $arg2 $arg1
创建软连接:
ln -s /root/.bcompare/.bcomparewith /usr/local/bin/bcomparewith
三、创建文件:/root/.bcompare/.bcomparediff
#!/bin/sh
#选中两个文件才比较
if [ $# -eq 2 ]
then bcompare $1 $2
fi
创建软连接:
ln -s /root/.bcompare/.bcomparediff /usr/local/bin/bcomparediff
四、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/open-by-bcomparelater.desktop :
[Desktop Entry]
Name=晚点比较
Type=Application
X-DFM-MenuTypes=SingleFile;SingleDir
Exec=bcomparelater %u
Icon=bcompare
五、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/open-by-bcomparewith.desktop :
[Desktop Entry]
Name=现在比较
Type=Application
X-DFM-MenuTypes=SingleFile;SingleDir
Exec=bcomparewith %u
Icon=bcompare
六、创建文件:/usr/share/deepin/dde-file-manager/oem-menuextensions/pen-by-bcomparediff.desktop :
[Desktop Entry]
Name=比较差异
Type=Application
X-DFM-MenuTypes=MultiFileDirs
Exec=bcomparediff %U
Icon=bcompare