I am working with Hadoop and I need to find which of ~100 files in my Hadoop filesystem contain a certain string.
I can see the files I wish to search like this:
You are looking to applying grep command on hdfs folder
hdfs dfs -cat /user/coupons/input/201807160000/* | grep -c null
here cat recursively goes through all files in the folder and I have applied grep to find count.