能源采矿日志

关于日志的清理~~~

smit.log  文件是节格式的,截取部分如下,怎样删除 "Oct 12 2011"这个日期的全部记录,而不是只删除“Oct 12 2011”这一行~~~~
谢谢!

[Oct 12 2011, 23:32:07]
Starting Motif SMIT
(Menu screen selected,
FastPath    = "inet",
id_seq_num  = "010",
next_id     = "inet",
title       = "Network Interface Selection".)
(Selector screen selected,
FastPath  = "chinet",
id        = "chinet",
next_id   = "chinet",
title     = "Change / Show Characteristics of a Network Interface".)
(Selector screen selected,
FastPath  = "chinet",
id        = "chinet",
next_id   = "chinet",
title     = "Change / Show Characteristics of a Network Interface".)
(Dialogue screen selected,
FastPath    = "chinet",
id          = "chineten",
title       = "Change / Show a Standard Ethernet Interface".)
(Selector screen selected,
FastPath  = "chinet",
id        = "chinet",
next_id   = "chinet",
title     = "Change / Show Characteristics of a Network Interface".)
(Selector screen selected,
FastPath  = "chinet",
id        = "chinet",
next_id   = "chinet",
title     = "Change / Show Characteristics of a Network Interface".)
[Oct 12 2011, 23:32:59]
Stopping Motif SMIT
[Oct 12 2011, 23:33:06]
Starting Motif SMIT
(Menu screen selected,
FastPath    = "tcpip",
id_seq_num  = "010",
next_id     = "tcpip",
title       = "TCP/IP".)
(Selector screen selected,
FastPath  = "mktcpip",
id        = "mktcpip",
next_id   = "mktcpip",
title     = "Minimum Configuration & Startup".)
(Selector screen selected,
FastPath  = "mktcpip",
id        = "mktcpip",
next_id   = "mktcpip",
title     = "Minimum Configuration & Startup".)
(Dialogue screen selected,
FastPath    = "mktcpip",
id          = "mktcpipen",
title       = "Minimum Configuration & Startup
To Delete existing configuration data, please use Further Configuration menus".)
(Selector screen selected,
FastPath  = "mktcpip",
id        = "mktcpip",
next_id   = "mktcpip",
title     = "Minimum Configuration & Startup"
参与5

4同行回答

onephoneonephone系统管理员swjtu
mark.............显示全部
mark.............收起
教育/培训 · 2011-11-02
浏览1050
zhenzongjianzhenzongjian软件开发工程师na
如有疑问,可以继续发问显示全部
如有疑问,可以继续发问收起
互联网服务 · 2011-10-26
浏览1023
zhenzongjianzhenzongjian软件开发工程师na
找出共同点就行grep如2011,grep出来之后,看看内容是否符合。在进行其他操作。。显示全部
找出共同点就行grep

如2011,grep出来之后,看看内容是否符合。

在进行其他操作。。收起
互联网服务 · 2011-10-26
浏览1016
zhenzongjianzhenzongjian软件开发工程师na
你grep时间出来行吗???(记住smit.log的权限)把时间先grep出来到一个文件aa。之后将smit.log文件备份。再cat aa>smit.log里就ok了。可能一次不能grep所有的时间,可以分批grep,追加到aa文件里去...显示全部
你grep时间出来行吗???
(记住smit.log的权限)
把时间先grep出来到一个文件aa。之后将smit.log文件备份。
再cat aa>smit.log里就ok了。

可能一次不能grep所有的时间,可以分批grep,追加到aa文件里去收起
互联网服务 · 2011-10-26
浏览1060

提问者

mmxok
技术经理sdfsd

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2011-10-25
  • 关注会员:1 人
  • 问题浏览:4578
  • 最近回答:2011-11-02
  • X社区推广