tail though a list of domains to search for a hacker code. All the files that I'm looking for are the same so I was trying something like this:
grep -rnl * -e "Ai9LbaFz7lC13SwzDxAYT72vwA"
Trying to see the file name / directory as well.
However that searches the entire file and that can be a waste of CPU and time so trying to write it with
tail as I'm only needing to search a small section of the file. This worked:
tail -n10 * | grep --line-buffered -e '^==> .* <==$' -e 'Ai9LbaFz7lC13SwzDxAYT72vwA'
tail doesn't seem to be recursive so it will only stay within it's dir.
I am definitely no code master so I'm hoping someone can point me in the right direction.