Use find command to extract lines from text files in subfolder – unix.stackexchange.com

I have text file input.txt in each of the hundred subfolders named sample_1, ..., sample_100. I can extract first line of all input.txt files using below command: find -name input.txt -exec awk 'FNR ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Use find command to extract lines from text files in subfolder – unix.stackexchange.com"