On a Linux system I have some output like this:

```
Subject = CN=User_A,OU=users
Status = Valid   Kind = IKE   Serial = 98505   DP = 9
Not_Before: Wed Jun 15 13:53:55 2022   Not_After: Sun Jun 25 08:25:20 2023

Subject = CN=User_B,OU=users
Status = Valid   Kind = IKE   Serial = 98934   DP = 8
Not_Before: Sun Apr 18 18:24:16 2021   Not_After: Fri Apr 21 18:24:16 2023

```

I can use | grep 2022 | grep Jun to find certain data, but how can get Subject line in the output? I need to get the username whose certificate is about to expire ) Something like "Show me the Subject if "grep 2022 | grep Jun"".

Thank you in advance!