当前位置:网站首页>Regular expression exercise
Regular expression exercise
2022-07-27 21:52:00 【51CTO】
1、 Show /proc/meminfo The size of the file s Beginning line ( requirement , Use two methods )

2、 Show /etc/passwd Not in the document /bin/bash The line at the end

3、 Show users root default shell Program

4、 find /etc/passwd Two or three digits in

5、 Show /etc/grub2.cfg In file , A line that begins with at least one white space character and is followed by a non white space character

6、 find netstat -tan In the command result listen A line that ends with any number of white space characters

7、 Add users bash、tesbash、basher、sh、nologin(shell by /sbin/nologin), find shell Row with the same name as the user

8、 utilize df and grep, Take out the utilization of each partition of the disk , And sort

9、 Show three users root、lgw、admin Of uid And default shell( Extended regularization )

10、 find /etc/rc.d/init.d/functions The first line in the file is a word ( Include underline ) The line followed by a parenthesis


11、 Use egrep Take out /etc/rc.d/init.d/functions Middle base name

11、 Use egrep Take out /etc/rc.d/init.d/functions Directory name in

12、 Statistics last In the order root Every host that logs in ip Address login times

13、 Use regular expressions to express 0-9、10-99、100-99、200-249、250-255;





14、 Show ifconfig All in the command result ipv4 Address

15、 Put this string welcome to lgw company Each character in is de duplicated and sorted , The one with the most repetitions is at the top .

边栏推荐
- Samsung's most advanced EUV production line has been put into operation: the 7Nm capacity this year will be three times that of last year
- Enumeration and annotation
- Software test interview question: does software acceptance test include formal acceptance test, alpha test and beta test?
- First zhanrui 5g chip! Exposure of Hisense F50, a pure domestic 5g mobile phone: equipped with Huben T710 + chunteng 510
- 单核CPU, 1G内存,也能做JVM调优吗?
- 软件测试面试题:请说出这些测试最好由那些人员完成,测试的是什么?
- 2021-11-05 understanding of class variables and class methods
- 首发展锐5G芯片!纯国产5G手机海信F50曝光:搭载虎贲T710+春藤510
- Simple manual implementation of map
- Software testing interview question: what project documents need to be referred to in designing the system test plan?
猜你喜欢

怎么还有人问 MySQL 是如何归档数据的呢?

Talk about MySQL transaction two-phase commit

day 1 - day 4

Pytest failed and rerun

Search, insert and delete of hash table

一篇文章带你走进pycharm的世界----别再问我pycharm的安装和环境配置了!!!

IDEA连接MySQL数据库并执行SQL查询操作

How to realize a good knowledge management system?

The design idea of relational database is obvious to you in 20 pictures

IDEA常用快捷键及设置方法
随机推荐
软件测试面试题:什么是回归测试?
Software testing interview question: what is the focus of unit testing, integration testing, and system testing?
腾讯云[HiFlow】| 自动化 -------HiFlow:还在复制粘贴?
[2022 Niuke multi School Game 2] k-link with bracket sequence I
Daily news on July 15, 2022: meta announced the launch of make-a-scene: AI image generation can be controlled based on text and sketches
Nano semiconductor 65W gallium nitride (GAN) scheme was adopted by Xiaomi 10 Pro charger
OPPO造芯计划正式公布:首款芯片或为OPPO M1
Zibbix installation and deployment
美司法部增加针对华为的指控,包括窃取商业秘密等16项新罪名
异常-Exception
Software test interview question: when saving a text file under windows, a save dialog box will pop up. If a test case is established for the file name, how should equivalent classes be divided?
Oppo core making plan officially announced: the first chip or oppo M1
一口气学完 Redis 集群方案
@Detailed introduction of requestparam annotation
二维数组的基本用法
如何实现一个好的知识管理系统?
排序(冒泡排序)后面学习持续更新其它排序方法
Software testing interview question: how many strategies are there for system testing?
V2.x synchronization is abnormal. There are a lot of posts that cannot be synchronized in the cloud, and the synchronization is blocked and slow
@RequestParam注解的详细介绍