我有2个文件,其中某些字符串在进行比较时要忽略。 这是一个例子
#### ide:0:0:<!echo "Running commands on server instance name: Tower"
Running commands on instance name: Tower0-0-1:5051
........
#### ide:0:0:<svl>
#### ide:0:0:<!echo "Running commands on server name: Power"
Running commands on instance name: Power0-0-1:5051
........
#### ide:0:0:<svl>
我想编写一个bash diff命令,该命令将忽略带有模式(或字符串)的行,例如'Power','5051'。我该怎么写呢? 我尝试过
diff -I "*.5051.*" o1.txt o2.txt