Sekhar Reddy has asked for the wisdom of the Perl Monks concerning the following question:
Hello MONKS,
I am new to perl and I have one query on PERL w.r.t Search functionality
In Perl, Can we search for a string in certain position(2nd Field) in list of files(huge size) and If matches, then write to disk with the same filename
ex: Filename1==> "123";"David";"8500";"";""
"456";"Peter";"7500";"";""
Simillarly Filename2 ==> "456";"John";"12500";"";""
Now i have to search for David and John in the files, and i want the output to be shown in two files ie., Filename1 and Filename2"
Expected Output is: Filename1==>"123";"David";"8500"
Filename2==>"456";"John";"12500"
Many Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search functionality in perl
by Discipulus (Canon) on Jun 06, 2018 at 07:20 UTC | |
by Sekhar Reddy (Acolyte) on Jun 06, 2018 at 09:40 UTC | |
|
Re: search functionality in perl
by kcott (Archbishop) on Jun 06, 2018 at 11:45 UTC | |
|
Re: search functionality in perl
by Anonymous Monk on Jun 06, 2018 at 07:12 UTC |