当前位置:网站首页>【无标题】
【无标题】
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/'`在这里插入代码片`
边栏推荐
- MTK6225-紧急电话
- Introduction to ADAS
- Meeting OA (Upcoming Meetings & All Meetings)
- 已解决(pip安装库报错)Consider using the-- user option or check the permissions.
- CTFshow,命令执行:web37
- Introduction and application of heap memory (including examples)
- What's up with VS "Cannot find or open PDB file"?How to solve
- Drawing arrows of WPF screenshot control (5) "Imitation WeChat"
- Browser shortcut keys
- Endorsed in 2022 years inventory | product base, science and technology, guangzhou automobile group striding forward
猜你喜欢
随机推荐
ClickHouse入门介绍与其特性
50.【动态二维数组的运用】
浏览器快捷键大全
7. SAP ABAP OData 服务如何支持 $orderby (排序)操作
The first experience of Shengsi large model experience platform——Take the small model LeNet as an example
PowerPC技术与市场杂谈
SAP ABAP OData 服务如何支持 $orderby (排序)操作试读版
从零开始Blazor Server(4)--登录系统
【cartographer ros】十: 延时和误差分析
pve 删除虚拟机「建议收藏」
Taobao commodity details and details on taobao, senior upgrade version of the API
世界第4疯狂的科学家,在103岁生日那天去世了
记一次 .NET 某智慧物流WCS系统CPU爆高分析
Golang内存分析工具gctrace和pprof实战
IntellJ IDEA如何显示换行符(line endings)
Cross-domain network resource file download
解决new Thread().Start导致高并发CPU 100%的问题
Glassmorphism design style
Pve delete virtual machine "for a collection"
玻璃拟态(Glassmorphism)设计风格








