有这样一个文本:
http://www.xxx.com/today/index.asp
http://www.xxx.com/yesterday/index.asp
http://www.xxx.com/admin/today/index.asp
http://www.xxx.com/yesterday/admin/index.asp
http://www.xxx.com/admin_today/index.asp
http://www.xxx.com/admintoday/index.asp
http://www.xxx.com/admin/index.asp
要求筛选含有today这个字符串的行,只要哪行有today这个字符串,无论在这行的哪个位置,那么这行就保留下来,如果没有today这个字符串的这行,这行就删除,输出结果应为:
http://www.xxx.com/today/index.asp
http://www.xxx.com/admin/today/index.asp
http://www.xxx.com/admin_today/index.asp
http://www.xxx.com/admintoday/index.asp
请问用批处理该如何实现 谢谢
[ Last edited by w1314ich on 2008-5-16 at 11:13 AM ]
http://www.xxx.com/today/index.asp
http://www.xxx.com/yesterday/index.asp
http://www.xxx.com/admin/today/index.asp
http://www.xxx.com/yesterday/admin/index.asp
http://www.xxx.com/admin_today/index.asp
http://www.xxx.com/admintoday/index.asp
http://www.xxx.com/admin/index.asp
要求筛选含有today这个字符串的行,只要哪行有today这个字符串,无论在这行的哪个位置,那么这行就保留下来,如果没有today这个字符串的这行,这行就删除,输出结果应为:
http://www.xxx.com/today/index.asp
http://www.xxx.com/admin/today/index.asp
http://www.xxx.com/admin_today/index.asp
http://www.xxx.com/admintoday/index.asp
请问用批处理该如何实现 谢谢
[ Last edited by w1314ich on 2008-5-16 at 11:13 AM ]
