Linux command: sed 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 Labels Linux LPIC-1