Hi below is my text file
{"Author":"john"
"subject":"java"
"title":"java cook book.pdf"}
{"title":"Php book.pdf"
"Author":"Smith"
"subject":"PHP"}
{"Author":"Smith"
"title":"Java book.pdf"}
from the above data i want to extract all titles which contains "java" word, i should get the following output
java cook book.pdf
Java book.pdf
Please suggest me
Thanks
sed -r '/title.*java/I!d;s/.*:.(.*).}$/\1/' file
java cook book.pdf Java book.pdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With