Awk time functions: systime, mktime, strftime
Awk time functions: systime, mktime, strftime. systime: systimeGet the timestamp; mktime: Create the timestamp; strftime: Format the time ......
Awk built-in functions: split, tolower, toupper, sprintf
Awk built-in functions: split, tolower, toupper, sprintf. Splits the parameter specified by the String parameter into the array elements ......
Awk built-in functions: index, match, length
Awk's built-in string processing function is the one we use most.we share with you: index, match, length...
Awk built-in functions: gsub, sub, substr
Awk's built-in string processing function is the one we use most. Today, we share with you: gsub, sub, substr....
awk print function in linux
Awk print function is a built-in function of awk, used for prints its arguments on the standard output (or on a file if > file...
Awk built-in functions – mathematical functions
awk supports the following built-in mathematical functions: atan2, cos, exp, log, sin, and sqrt....
Awk built-in variables and custom variables
In awk, variables are divided into two types: built-in variables and user-defined variables....
How to find empty lines in files in Linux
In Linux, there are three ways to find empty lines in files using grep and awk commands....
How to convert a string to lowercase in Linux?
This section describes how to use sed, awk, TR commands to convert strings to lowercase in Linux...
Awk classic case – awk analysis of nginx access logs
Awk classic case - awk analysis of nginx access logs.Count top visits and the number of visits in the most recent time....
awk replace statement and examples
Awk replace statement can help us format the input data conveniently. Use of awk string manipulation functions: gsub() ...
awk tutorial: awk multiple conditions
Awk supports if else conditions judgment, and multiple conditions operations with && (and) or || (or) can be used....
How to use awk concatenate string in linux/unix
Awk concatenated strings, you can use awk OFS variables, or you can use strings directly. syntax: awk'BEING {s1="string1";s2="string2";OFS="delimiter";print s1,s2;}'...
How to use awk to select substring in linux/unix
Awk substr has built-in functions that can help us select substrings anywhere in the input string. awk substr syntax: substr(string, start, lenght)...
awk ternary condition judgment and examples
Awk ternary condition judgment is similar to the awk if else statement, providing branch control capability. Ternary syntax: ( Statement ) ? True :...