AWK is a regular expression and an important text processing tool. In Linux systems, AWK is also an engine for data processing. There are three general forms of using AWK rules under Linux. Let's take a closer look at how to use AWK regular expressions under Linux.
in the form of a (similar analysis with you):
awk & lsquo; /regular /{body treatment} & rsquo; file
0 $ default matching, rather After $0~/regular/
, the matching content will be printed by default after the regular match, so if the main statement is just print, it can be omitted directly.
Form 2:
awk ‘{if($4~/root/) print}’ file
Use regularity in the if statement of the body statement.
Form 3:
awk ‘{built-in string handling function}’ file
Use regular rules in awk's built-in string handling functions, such as sub, gsub , gensub, match, etc.
echo “ABC^H^H^H^HDEF”
Leap Second translates to the meaning of leap seconds, because the Linux system nee
In the Uuntu system, many users have set the account name and password, but some users can easily fo
The find command in Linux has multiple ways to find it. What about the -path -prune
We all know that the mail command can be used for the regular processing of mail lo
Linux how to use the whereis command to quickly find the file
How to manage mail email logs in Linux
Linux system VLAN, Layer 3 switching and trunk difference
How to expand Xen virtual hard disk space by Linux
What should I do if Unix cannot find the apue.h file?
Linux system uses the command line to execute the php file transfer step
How to use valgrind to check memory in Linux system
Win7 and XP LAN can not access the solution
Windows xp file suffix does not show how to know the file type on the computer
How does Win10 set up headphones and audio at the same time?
Windows xp system prompts to find the solution to the comctl32.dll file after booting
Win8 can not install net3.5 how to do? Windows8 can not install net framework 3.5 solution
Do it yourself Create a different Windows XP
Several aspects to be aware of after the system is installed
What should I do if the Win7 system searches for files?