Parse file from remote server to caculate count of string existence in that file
I need to parse the file of same name which exist on different servers and calculate the count of string existed in both files.
Say a file abc.log exist on 2 servers.
I want to search for string "test" on both files and calculate the total count of search string's existence.
For example if file abc.log on server 1 has string "test" 2 times
and file abc.log on server 2 has string "test" 4 times.
then the output will be
StringName : Count
test : 6 times
Note : I have created the password less connectivity using ssh-keygen.
Thanks inn advance.
you can get the count like this for a start
Parse file from remote server to caculate count of string existence in that file Reply to Thread
I need to know how i can access this file without copying on my server using ssh , calculate the count and exit.
|All times are GMT -5. The time now is 07:11 AM.|