>>/8922/
What I did that worked - it finds ten consecutive lines of greentext given a set of posts as text files:
> $ curl -sL https://ipfs.filebase.io/ipfs/Qmb7pn6qDfb75QZx65W26JPiffZe5rGjJgpCC4R4hV6F4Y?format=car | ipfs dag import
> $ # make sure you have ipfs and curl installed
> $ ipfs get Qmb7pn6qDfb75QZx65W26JPiffZe5rGjJgpCC4R4hV6F4Y
> $ # puts the CID data into a folder in a storage device
> $ cd ./Qmb7pn6qDfb75QZx65W26JPiffZe5rGjJgpCC4R4hV6F4Y/4chan/mlp/thread/40219665/
> $ # change directory into the folder with the posts
> $ ls | head -n7
> 40219665
> 40221229
> 40221685
> 40221730
> 40222638
> $ # one text file (without any file extension) per post
> $ find . -type f | xargs -d "\n" sh -c 'for args do echo $args; cat $args | perl -pE "s/\n/\0/g" | grep -Poa "\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0" 1>/dev/null; echo $?; done' _ > 0match1.txt
> $ # save matches to file "0match1.txt", make sure that you have perl installed
> $ cp -n 0match1.txt 0match2.txt
> $ # optionally copy the file
> $ vim 0match2.txt
> $ # make sure you have vim installed
> $ # use this in vim :%s/\.\/\d\+\n1\n//g
> $ cat 0match1.txt | perl -pE "s/^0\n//g" | head
> ./40273549
> ./40261983
> ./40271905
> ./40258664
> ./40245417
> ./40232552
> ./40282979
> ./40232094
> ./40273319
> ./40246488
> $ # some of the matches, did it work? more on that likely in the next post