Oct 22, 2010, 6:23 PM
Re: [winfinit] Grepping a file in all the files in an array and storing them in a hash
Thanks for the reply.I have modified the above code for the complete code.Basically am getting a file name($file_name) from every line in a file($file) and grepping for the file name in @file_1 and @file_2.
1.Now my problem is i have an array of files "@files" to grep,i have to open every file in @files and grep in every file instead of just 2 files (@file_1 and @file_2)
2.Also,my output has to be be like below
For example,$file_name matches a file X in @files.Output should be
Files matched by X:-
(This post was edited by iphone on Oct 22, 2010, 6:28 PM)