Wednesday, July 6, 2016

Read Email on Command Line - Power of AWK

https://mail.google.com/mail/feed/atom

XML

curl -u username:password –silent “https://mail.google.com/mail/feed/atom”
|
tr -d ‘\n’ | awk -F ” ‘{for (i=2; i<=NF; i++) {print $i}}’
|
sed -n “s/\(.*\)<\/title.*name>\(.*\)<\/name>.*/\2 – \1/p”
Bonus

Remove duplicates:
awk ‘!x[$0]++’ <filename>

Going one step further with Kotlin & gRPC

Recently, I tried using Quarkus with Kotlin for grpc. I have worked with grpc for communication between microservices in Java & Golang. ...