I want to print all the lines of a file in which second and second last character are the same, such as with the following file (comments to the right are for explanatory purposes, they do not exist in the file):

```
hello james        # second/second-last are 'ee' - match
how are you?       #                        'ou'
are you okay?      #                        'ry'
Is it past         #                        'ss' - match

```

Then the output should be

```
hello james
Is it past

```

How would I go about doing this?