I always thought we should make a short of Python for one liners inspired from awk, where the loop over the lines would be implied.
the line, lineno and fields would be predifined, and I guess re, os, shutil, pathlib and sys are pre imported. maybe the whole stdlib acts as if it's preimported, while only being imported lazyly
here it would be something like
```
if re.match(r'[A-Za-z]', line):
fields = line.split()
print(inp.lineno(), fields[1])
```
so
```
cat makefile | pyawk 'if re.match(r"[A-Za-z]", line): print(lineno, fields[1])'
```
I don't see a way out of multiple if statements requiring multiple lines though, otherwise you would have to introduce brackets to Python lol