find . -name '*.py' | xargs grep 'username'
^^ note the user of find to locate all the python files, and how the glob pattern *.py is within single quotes
^^^ note the use of xargs (i.e. how xargs takes all the output from find, seperates it by whitespace/newline, and feeds it to the grep command, one by one, as command line args)
^^^^ note that output will have name of file, along with the line that has the 'username' regex pattern
find . -name '*.py' | xargs grep 'username'
^^ note the user of find to locate all the python files, and how the glob pattern *.py is within single quotes
^^^ note the use of xargs (i.e. how xargs takes all the output from find, seperates it by whitespace/newline, and feeds it to the grep command, one by one, as command line args)
^^^^ note that output will have name of file, along with the line that has the 'username' regex pattern
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |