I am new to Unix/Linux world, I am working with Hadoop. And I need to find a String in more than 100 files. And also which files contains that particular String. So below is my scenario-
So I go to Bash Prompt, and then I type like below to get all the files under a folder and it is like around 100 files under real-time folder.
bash-3.00$ hadoop fs -ls /apps/hdmi-technology/b_apdpds/real-time
So I am showing only two files that I will be getting from the above command but we have more than 2 and it is around 100 files.
-rw-r--r-- 3 b_apdpds hdmi-technology 1073741824 2012-07-18 22:50 /apps/hdmi-technology/b_apdpds/real-time/HADOOP_REALTIME_consolidated_RT_v1x0_20120716_aa
-rw-r--r-- 3 b_apdpds hdmi-technology 1073741824 2012-07-18 22:50 /apps/hdmi-technology/b_apdpds/real-time/HADOOP_REALTIME_consolidated_RT_v1x0_20120716_ab
And I need to find a String named
in all of the 100 files and also which files contain that particular String. Is this possible to do it?