Linux grep exercises, linuxgrep
1. display the lines starting with "s" of the/proc/meminfo file with no size difference;
2. display the rows ending with nologin in/etc/passwd;
3. the/etc/inittab starts with #, followed by one or more blank characters, and followed by any character rows;
4. the/etc/inittab displays the rows of a number (that is, a number between two colons;
5. display the lines starting with one or more blank characters in the/boot/grub. conf file;
6. display the rows starting with a number in the/etc/inittab file and ending with the same number as the starting number;
7. The ifconfig command can display information related to the IP address of the current host. If you use the grep or other text processing commands to retrieve the IP addresses of the local host, the requirements do not include 127.0.0.1;
8. The/etc/sysconfig/network-scripts/ifcfg-eth0 file contains a line similar to an IP address point in decimal format;
For more information, see Xiao Liu.