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

Synology: Empty Recycle Bin

How to empty Recycle Bin. Control Panel > Shared Folder > Action > Empty al Recycle Bins Synology: Empty Recycle Bin

Assembly on Linux with NASM

Practice Assembly on Linux with NASM - Netwide Assembler

Learn IBM z/OS