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

Red Hat: Notes

Docker for Windows: Access Denied

Today, I get this error when running Docker for Windows on Windows 10 Build 1803. So, I check my current username (run whoami ) and add that user to docker-users local group, which has only NT AUTHORITY\SYSTEM account in members list. I must log out and log in again to run Docker for Windows.