I'm a beginner in programming and I'm stuck in a code here.
Through the shell I have to search within directories and sub directories all files that are of the form .py
and have the datetime
library included. And after that I have to show the largest file in that list. The first two parts came out, but I have no idea how to show their largest file:
find . -name '*.py' -type f exec -grep "import datetime" {} -lirw \;
This code is working fine for fetching all python files that have the datetime
library.
Thanks for the help