Quote:
Originally Posted by patpat2
Is there a way to use a grep command with an echo command so that the output will show only part of what is being echoed?
|
Can you be more specific?
If you use grep -o it will echo that pattern only and not the entire line.
For example
echo "My name is Azat, I love linux" | grep -o linux
linux
This will return the pattern linux and ignore the rest.