Find lines in files
Posted: 22 Apr 2020 23:22
Background: I want to figure out what Python packages all of my IPython notebooks import.
What I know: How to find all files containing the word 'import'. I know that all of my notebooks contain this word, thank you very much.
What I want: A list of the actual import lines. (I have 96 notebooks, and I don't want to manually open each one to collect this information.)
After writing this post, I figured out that I can do this in Notepad++, but there I don't have Exclude or the other extra-cool options that XY has. It's probably good enough for now, but I'm still curious.
What I know: How to find all files containing the word 'import'. I know that all of my notebooks contain this word, thank you very much.
What I want: A list of the actual import lines. (I have 96 notebooks, and I don't want to manually open each one to collect this information.)
After writing this post, I figured out that I can do this in Notepad++, but there I don't have Exclude or the other extra-cool options that XY has. It's probably good enough for now, but I'm still curious.