Using the ‘sed’ Command in Bash/Linux, With Examples
The sed (Stream EDitor) command in Bash/Linux reads text from a stream or file and performs line-by-line operations on it based on a set of supplied criteria. Here’s how to use it. sed is an automated way to process text. One simple example of where sed can be used is doing a simple find-and-replace for a word in a text document – the text with the words replaced can then be saved to a new file or overwrite the original. Why? Being able to modify text – either from a … Read more