当前位置:网站首页>【无标题】
【无标题】
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/'`在这里插入代码片`
边栏推荐
- 阿里腾讯面试一二
- Introduction to STM32 development Introduce IIC bus, read and write AT24C02 (EEPROM) (using analog timing)
- What is a stepper motor?40 pictures to show you!
- 【cartographer ros】10: Delay and error analysis
- For small applications, which database is better to use?
- 对于小应用来讲,使用哪款数据库比较好?
- 小程序毕设作品之微信美食菜谱小程序毕业设计成品(3)后台功能
- Shell: Conditional test action
- 昇思大模型体验平台初体验——以小模型LeNet为例
- CTFshow,命令执行:web31
猜你喜欢
Custom Types - Enums, Unions
自定义类型——枚举、联合
Google Earth Engine APP——15行代码搞定一个inspector高程监测APP
CTFshow,命令执行:web34、35、36
How to Steal $100 Million from the Perfect Smart Contract
Three chess (C language implementation)
CTFshow,命令执行:web31
Mini Program Graduation Works WeChat Food Recipes Mini Program Graduation Design Finished Products (4) Opening Report
SAP ABAP OData 服务如何支持 $orderby (排序)操作试读版
C language game - minesweeper
随机推荐
C#/VB.NET convert PPT or PPTX to image
PowerPC技术与市场杂谈
experiment....
STM32 personal notes - program run and fly
Introduction and application of heap memory (including examples)
xss-labs靶场挑战
Change Servlet project to SSM project
Mini Program Graduation Works WeChat Food Recipes Mini Program Graduation Design Finished Products (3) Background Functions
浏览器快捷键大全
SkiaSharp's WPF self-painted five-ring bouncing ball (case version)
编码解码(btoa、encodeURIComponent、encodeURI、escape)
.NET性能优化-使用SourceGenerator-Logger记录日志
WPF 截图控件之绘制箭头(五)「仿微信」
How to find out hidden computer software (how to clean up the computer software hidden)
[Cloud Residency Co-Creation] Huawei Cloud Global Scheduling Technology and Practice of Distributed Technology
Go-Excelize API source code reading (8) - GroupSheets(sheets []string), UngroupSheets()
Google Earth Engine APP——15行代码搞定一个inspector高程监测APP
gc的意义和触发条件
July 31, 2022 -- Take your first steps with C# -- Use C# to create readable code with conventions, spaces, and comments
自定义类型——枚举、联合