Hi all
I'm trying to achieve the following:
Code:
echo "Enter the word: "
read a
sed -n '$a p' file
Obviously, it doesn't bring the needed results. How can I accomplish
it in sed (is sed the best tool for it)?
Basically, I have large text files, and would like to search for
particular worlds in them. Ideally providing the context as well (previous and next lines as well)
Any help would be appreciated.
thank you