I would like to print specific data after matching a pattern or line. I have a file like this:
#****************************** List : car Design: S
a shell one-liner to do the same thing
echo "Car Type No. "; \ grep -A 2 Type data.txt \ | grep -v -E '(Type|-)' \ | grep -o -E '(\w+ *\w+)'