Skip to main content

Linux command: sed

Linux command: sed - stream editor

sed - stream editor for filtering and transforming text

Notes: sed and grep operate line-by-line

Search and replace all my_ with his_ in file.txt file

$ sed -i 's/my_/his_/g' file.txt

Search and delete blank line

$ sed -i 's/^$//' file.txt

Popular posts from this blog

GNU nano Text Editor

nano - Nano's ANOther editor, an enhanced free Pico clone

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

Using Powershell to manage Hyper-V

Common powershell cmdlets to manage Hyper-V.