Suppose I have 100 texts under the same dir, i.e., text1.txt, text2.txt,...,text100.txt. I want to extract certain lines(e.g., first 100 lines)from each text, and save the lines to another new 100 texts respectively,that is, each new text has 100 lines.
head -100 text1.txt > text1_new.txt,
head -100 text2.txt > text2_new.txt ... can make it. But are there any more efficient methods to extract them simultaneously in the terminal?