How to get events from from a pod and deployment redirected to a file? is this c . . .

R:
How to get events from from a pod and deployment redirected to a file? is this can be done by jsonpath or will have to use linux/unix commands?

SaidBen:
$ k get events -A | grep podName > pod.txt

R:
Thanks SaidBen!!