Hello everyone,I need some help over here with grep
i have this
grep -n hello filename
grep -v hello filename
grep -y hello filename
grep -i hello filename
grep -w hello filename
grep -f file hello filename
and i have to execute these commands with a different way. For instance instead of using grep use sed
for instance i know the answer for the first one.
grep -n hello filename
sed -nr '/hello/p' filename
and for the second one
grep -v hello filename
sed -nr '/hello/!p' filename
i am not sure for the rest.
Thanks for your help!!