当前位置: 技术问答>linux和unix
救急:shell文本操作
来源: 互联网 发布时间:2016-06-08
本文导语: 以下是文本a.txt的内容,根据内容将其中四行输出到文本b.txt中,希望大侠帮助,多谢 Tablespace ID = 1 Name = TEMPSPACE1 Type = System managed space Contents = System Temporary data State = 0x0000 Detailed e...
以下是文本a.txt的内容,根据内容将其中四行输出到文本b.txt中,希望大侠帮助,多谢
Tablespace ID = 1
Name = TEMPSPACE1
Type = System managed space
Contents = System Temporary data
State = 0x0000
Detailed explanation:
Normal
Total pages = 1
Useable pages = 1
Used pages = 1
Free pages = Not applicable
High water mark (pages) = Not applicable
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 32
Number of containers = 1
Tablespace ID = 2
Name = USERSPACE1 Type = Database managed space
Contents = All permanent data. Regular table space.
State = 0x0000 //判断该值是否等于0x0000,如果不等于
Detailed explanation: 则将该四行红色字体内容输出到
Normal /tbwarning.log
Total pages = 2738600 //判断Free pages/ Total pages*100%
Tablespace ID = 1
Name = TEMPSPACE1
Type = System managed space
Contents = System Temporary data
State = 0x0000
Detailed explanation:
Normal
Total pages = 1
Useable pages = 1
Used pages = 1
Free pages = Not applicable
High water mark (pages) = Not applicable
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 32
Number of containers = 1
Tablespace ID = 2
Name = USERSPACE1 Type = Database managed space
Contents = All permanent data. Regular table space.
State = 0x0000 //判断该值是否等于0x0000,如果不等于
Detailed explanation: 则将该四行红色字体内容输出到
Normal /tbwarning.log
Total pages = 2738600 //判断Free pages/ Total pages*100%
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。