kaushik222
Technical User
Hi
I have a list of file names of flat feeds in a text file in the following format
filenames.txt
-----------------
file1.feed
file2.feed
file3.feed
file4.feed .........approx 25 filenames
these files exists in a perticular /SRCDIR...
"|" is the delimiter for each column in each one of these files
I need to search for the number of columns and rows in every feedfile.
But I do it manually by giving the columns less than some number and try to know it this way
awk 'BEGIN {FS="|"} NF < 20' < FeedFileName | wc -l
Is there way, where it takes one filename at a time from filenames.txt and get the number of columns and rows, puts the output into one single file output file.
I have a list of file names of flat feeds in a text file in the following format
filenames.txt
-----------------
file1.feed
file2.feed
file3.feed
file4.feed .........approx 25 filenames
these files exists in a perticular /SRCDIR...
"|" is the delimiter for each column in each one of these files
I need to search for the number of columns and rows in every feedfile.
But I do it manually by giving the columns less than some number and try to know it this way
awk 'BEGIN {FS="|"} NF < 20' < FeedFileName | wc -l
Is there way, where it takes one filename at a time from filenames.txt and get the number of columns and rows, puts the output into one single file output file.