I have thousands of files. Each files are having lines with different length. I need to print those filenames whose length of the lines are more than 15.
Contents of the files can have space as well as any special characters.
eg
File1 have below content:
Cat File1
123456789
1234567
123456789|121|fasdf
File2 have below content:
Cat File2
12345612|12|342
2351ada|123|qw
Output of the command should be File1 as it has one line in it "123456789|121|fasdf" having length more than 15.
We will declare a variable a as a length of first field ($1).
Then if a is greater then 15, we shall use awk builtin variable FILENAME and print it in output.