存为2个文件 s1.txt s2.txt- @echo off
- setlocal enableDelayedExpansion
-
- set _Lf_=^&echo,
-
- for /f %%i in (s1.txt) do (
- set s1=!s1!%%i!_Lf_!
- )
- echo %s1%
-
- for /f %%i in (s2.txt) do (
- set "s2=!s2!%%i "
- )
- echo %s2%
-
- echo,
- (echo %s1%) | findstr "%s2%"
复制代码 win10
输出结果为:
com.alibaba.android.rimet
com.estrongs.android.pop
com.iflytek.inputmethod
com.sankuai.meituan.takeoutnew
com.tencent.tmgp.sgame
tv.danmaku.bili
com.autonavi.minimap
com.chinamworld.bocmbci
com.taobao.etao
org.meowcat.edxposed.manager
ccc71.at.free
cn.soulapp.android
cn.wq.myandroidtools
com.coolapk.market
com.eg.android.AlipayGphone
com.findtheway
com.jd.jrapp
com.jingdong.app.mall
com.omarea.vtools
com.sankuai.meituan
com.sdu.didi.psnger
com.tencent.mm
com.tencent.mobileqq
com.topjohnwu.magisk
com.unionpay
com.zhihu.android
eu.thedarken.sdm
eu.thedarken.sdm.unlocker
flar2.exkernelmanager
web1n.stopapp
moe.shizuku.privileged.api
xzr.La.systemtoolbox |