#!/bin/bash

text="我是傻逼茅台盛中场秀回访中心的您之前在手机上面参与过我们酒场的零九活动嘛所以我们酒场的老客户您成功参与这次回馈活动的话是可以免费的获得五瓶方程六年的可量是老九的嘛大您的弟址的话还是在江苏省徐州市封建造装甚子呢"

file_list=( "/home/ciku/js.txt" "/home/ciku/jy.txt" "/home/ciku/mr.txt" "/home/ciku/daikuan.txt" "/home/ciku/licai.txt" "/home/ciku/mr.txt" "/home/ciku/tousu.txt" "/home/ciku/yanzhongjinggao.txt" "/home/ciku/yidongzengzhi.txt" "/home/ciku/yisizhapian.txt" )

for file in ${file_list[@]} do filename=${file##*/} filename=${filename%.txt} keywords=$(cat $file | tr '\n' '|' | sed 's/|$//') if [[ "$text" =~ $keywords ]]; then echo "$filename: $keywords" fi done

exit 0


原文地址: https://www.cveoy.top/t/topic/p1g 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录