Word Replace
sed ‘s/root/amrood/’
sed ‘s/root/amrood/g’
sed ‘s/root/amrood/’ | grep root
sed ‘s/root/amrood/g’ | grep root
cat /etc/passwd | sed ‘s/root//g’
Delete Lines in the Output
cat /etc/passwd | sed ‘1, 5d’ |more
cat /etc/passwd | head
cat /etc/passwd | sed ‘1d’ | head
cat /etc/passwd | grep ‘sh$’
cat /etc/passwd | sed ‘/sh$/d’
Print:
cat /etc/passwd | sed -n ‘/root/p’