Ok I have a blob of text in a variable

How could I print only the first 100 lines?