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...
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'...
sed tutorial: sed in-place editing(-i option) with examples
Sed -i option, in-place editing of files, and can edit the operation file while the terminal does not output the sed execution result....
sed tutorial: sed append command
The sed append command can add a new line before or after the specified matching line. We do this by using sed a and i...
sed tutorial: sed address and address range(select lines) with examples
sed address and address range tutorial, by using addresses or address ranges, the sed command can apply certain actions to these address lines....
How to use sed to replace multiple patterns at once in linux/unix?
sed is a powerful streaming text editor, and replace pattern is one of the most used functions. This article introduces how to replace multiple patterns...
How to replace strings in files in the Linux command line
There are many ways to replace strings in Linux. You can use vim/vi to edit files, you can also use the sed command to replace,...
Sed command tutorial in linux/unix with examples and use cases
sed is a stream editor. 1. sed workflow
2. hold space and pattern space explain
3. sed syntax
4. sed debug tool
5. sed example
...
How to using multiple delimiters in awk and sed
Multiple delimiter-separated fields in awk or sed.
Using awk command:
➜ awk -F'[:=|]' '{print $1, $2, $3}' test.log;
Using sed command:
➜ sed 's/[:=|]/ /g' test.log...