我开始使用漫反射,你可以用它来比较多个文件,但是它有些无用,因为当你需要比较20个文件时你不能水平比较线条,我想的可能是一行来自水平显示的所有20个文件。
答案 0 :(得分:1)
编辑Vim可以做你想要的。这是一个传统的UNIX程序,已被移植到几乎所有阳光下的操作系统,而且它是免费的。在gVim中:
等
答案 1 :(得分:0)
虽然它很蹩脚,但这是我作为一个快速而肮脏的解决方案所恢复的:
我将一个名为number的变量设置为我想要比较的行:
set number=10
我编写了以下批处理文件并安装了GNU Utilities:
head -n %number% approval.htm | tail -n 1 >> compare%number%.file
echo approval.htm >> compare%number%.file
head -n %number% checkout.htm | tail -n 1 >> compare%number%.file
echo checkout.htm >> compare%number%.file
head -n %number% confirmation.htm | tail -n 1 >> compare%number%.file
echo confirmation.htm >> compare%number%.file
head -n %number% edit_imprint.htm | tail -n 1 >> compare%number%.file
echo edit_imprint.htm >> compare%number%.file
head -n %number% history.htm | tail -n 1 >> compare%number%.file
echo history.htm >> compare%number%.file
head -n %number% home.htm | tail -n 1 >> compare%number%.file
echo home.htm >> compare%number%.file
head -n %number% imprint.htm | tail -n 1 >> compare%number%.file
echo imprint.htm >> compare%number%.file
head -n %number% mixed.htm | tail -n 1 >> compare%number%.file
echo mixed.htm >> compare%number%.file
head -n %number% office.htm | tail -n 1 >> compare%number%.file
echo office.htm >> compare%number%.file
head -n %number% payment.htm | tail -n 1 >> compare%number%.file
echo payment.htm >> compare%number%.file
head -n %number% report_cat.htm | tail -n 1 >> compare%number%.file
echo report_cat.htm >> compare%number%.file
head -n %number% review.htm | tail -n 1 >> compare%number%.file
echo review.htm >> compare%number%.file
head -n %number% settings.htm | tail -n 1 >> compare%number%.file
echo settings.htm >> compare%number%.file
head -n %number% shopping_cart.htm | tail -n 1 >> compare%number%.file
echo shopping_cart.htm >> compare%number%.file
head -n %number% stock.htm | tail -n 1 >> compare%number%.file
echo stock.htm >> compare%number%.file
head -n %number% warehouse.htm | tail -n 1 >> compare%number%.file
echo warehouse.htm >> compare%number%.file
结果文件compare10.file中的所有比较都是垂直查看的。它很蹩脚,但它确实有效。