This question already has an answer here:
I wanted to read the first text file in every directory using "cat or vi". To clarify the issue:
The Folder_A1 contain 1000 text files. The files named in the following format "i.1351". All the files names starts with "i." and the number is different between these files.
I have 500 Folders, each one contain ~1000 text file (*.txt), and I want to read just the first file in each folder. How can I do that?