Unix command to count a given string and print with filename -
i have multiple files in folder. want read files count word present , print filename.
for example: numeric value matching count of string
filename string1 string2 file1 5 1 file2 3 7
find . -name "abc" -exec grep -h 'xyz' {} +
Comments
Post a Comment