Print first 15 lines of all .txt files in subdirectories

  • Thread starter Thread starter aznlau22
  • Start date Start date
  • Tags Tags
    Linux
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 1K views
aznlau22
Messages
1
Reaction score
0
This is my first time on this site so I'm not sure if I am even posting in the right section...
Well I had a exam last week on commands and utilities and I wasn't sure how to aswer one of the question. The question is how do you print the first 15 lines of all files ending by “.txt” in all your folders and subfolders?
i know i have to use the head command but where do i go from there?
 
Physics news on Phys.org