【发布时间】:2013-12-17 17:56:22
【问题描述】:
我写了一个期望脚本来登录一些路由并运行sh inv 命令,但输出也
包含以下内容:
********************************* Access Warning!! ***********************************
* *
* This computer system, its network and data contained therein is the property of *
* the <Company name>. Access to this computer and network is restricted *
* to persons and programs authorised by the Group only. Access by others is *
* prohibited and unauthorised, and is wrongful under law. Do not proceed if you *
* are not authorised. Any unauthorised access will be prosecuted to the fullest *
* extent of the law. *
* *
**************************************************************************************
我可以使用 RegEx 从文本文件中删除上述重复出现的段落吗?
【问题讨论】:
-
你使用什么语言?
-
你违反了什么法律?
-
我正在使用 Shell 脚本/bash
标签: regex