当前位置:网站首页>【无标题】
【无标题】
2022-08-01 10:14:00 【weixin_51808099】
2022年7月24日作业
发布时间:2022-07-24 16:35:38
未提交
假设我们的日志nowcoder.txt里,内容如下:
12-May-2017 10:02:22.789 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:Apache Tomcat/8.5.15
12-May-2017 10:02:22.813 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:May 5 2017 11:03:04 UTC
12-May-2017 10:02:22.813 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:8.5.15.0
12-May-2017 10:02:22.814 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:Windows, OS Version:10
12-May-2017 10:02:22.814 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:x86_64
现在需要你提取出对应的值,输出内容如下:
serverVersion:Apache Tomcat/8.5.15
serverName:8.5.15.0
osName:Windows
osVersion:10
[[email protected] zuoye]# awk 'NR==1,NR==4 {print $6 $7 $8 $9}' shell33 |awk 'NR!=2'|sed 's/,/\n/'`在这里插入代码片`
边栏推荐
猜你喜欢

2022年中盘点 | 产品打底,科技背书,广汽集团阔步向前

PowerPC技术与市场杂谈

小程序毕设作品之微信美食菜谱小程序毕业设计成品(2)小程序功能

Message queue interview latest finishing (2022)

IntellJ IDEA如何显示换行符(line endings)

What's up with VS "Cannot find or open PDB file"?How to solve

如何在IntellJ IDEA中批量修改文件换行符

7/31 训练日志

Yang Hui Triangle (C language implementation)

Qt supports HEIC/HEIF format images
随机推荐
slice、splice、split傻傻分不清
世界第4疯狂的科学家,在103岁生日那天去世了
rpm and yum
Drawing arrows of WPF screenshot control (5) "Imitation WeChat"
The meaning and trigger conditions of gc
How to Steal $100 Million from the Perfect Smart Contract
C language game - minesweeper
July 31, 2022 -- Take your first steps with C# -- Use C# to create readable code with conventions, spaces, and comments
从零开始Blazor Server(4)--登录系统
[Software Architecture Mode] The difference between MVVM mode and MVC mode
周鸿祎称微软抄袭 360 安全模式后发文否认;英特尔CEO基辛格回应市值被AMD超越:股价下跌是咎由自取|极客头条
gc的意义和触发条件
xss漏洞学习
.NET性能优化-使用SourceGenerator-Logger记录日志
2022年中盘点 | 产品打底,科技背书,广汽集团阔步向前
【cartographer ros】十: 延时和误差分析
玻璃拟态(Glassmorphism)设计风格
PDMan-国产免费通用数据库建模工具(极简,漂亮)
mysql在cmd的登录及数据库与表的基本操作
Pve delete virtual machine "for a collection"