Question: what is the difference between grep and sed command in unix?
Answer: Grep is useful if you want to quickly search for lines that match in a file. ... Sed is useful when you want to make changes to a file based on regular expressions. It allows you to easily match parts of lines, make modifications, and print out results.