School of Computing. Dublin City University.
Online coding site: Ancient Brain
coders JavaScript worlds
cd (somedir) ; grep -i (searcharg) */*html(";" allows two commands on one line)
https://web.archive.org/web/2019/https://ebooks.adelaide.edu.au/s/shakespeare/william/macbeth/act3.html
filename: hit
$url = "https://web.archive.org/web/2019/https://ebooks.adelaide.edu.au/s/shakespeare/william/$filename"; print "<a href='$url'>$filename</a>: $hit";
Here is a simple solution: Pipe grep to head, which collects the first n lines of what is piped into it.
grep string files | head -500