vim tutorial: vim delete line
Vim delete lines, as the basic knowledge of vim is one of the functions we must master. Mastering the skills of deleting lines can improve...
awk replace statement and examples
Awk replace statement can help us format the input data conveniently. Use of awk string manipulation functions: gsub() ...
vim tutorial: vim copy, cut and paste
This article will show you how to use vim to copy-paste and cut-paste in normal mode. ①y stands for copy ②p stands for paste ③d...
vim tutorial: vim search
Vim search can help us quickly locate the location of the content when looking for or modifying the content of a file....
vim tutorial: vim save and quit
Vim save and quit, there are two shortcut keys:
* :wq - Force write file and quit.
...
awk tutorial: awk multiple conditions
Awk supports if else conditions judgment, and multiple conditions operations with && (and) or || (or) can be used....
sed tutorial: sed replace
Sed replace, you can use the sed function: s, replace the text in the file. syntax: ➜ ~ sed 's/regexp/replacement/' file...
sed tutorial: sed insert line before match
Sed insert a line before match, you can use the sed function: i, add a new line before the matched string. syntax: sed '/option/i...
sed tutorial: sed add line after match
sed add line after match, you use sed function: a , to add a new line after the matched string. syntax: sed '/option/a newLine'...
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)...
tr command tutorial in linux/unix with examples and use cases
linux tr command common examples: replacing specific characters, removing specific characters, deleting duplicate characters, etc....
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 :...
awk OFS field separator with examples
Awk OFS field separator variable, output field separator. It is a pair with the Awk FS variable; awk FS separates strings as fields, and awk...
awk FS field separate with examples
awk separate string, you can use awk FS variable or awk -F option to support single delimiter and multiple delimiter regular matching....