10 Useful SED (Streamline Text Editor) commands.

10 Useful SED (Streamline Text Editor) commands.

10 Useful Streamline text editor commands with demo. echo "Bash Scripting Language" | sed 's/Bash/Perl/' sed '/brd/ s/john/tom/g' file.txt sed 's/Python/perl/g2' file.txt sed -e '$s/Python/Bash/' file.txt sed -e '/CSE/ s/Count/100/; /EEE/ s/Count/70/;' dept.txt sed -i -e '/CSE/! s/Count/80/;' echo "Bash language" | sed 's/\(Bash\)/Learn \1 programming/' sed '/OS/d' os.txt sed '/Linux/,+2d' os.txt sed '/^$/d' os.txt