Search Results

Search: Posts Made By: pvksandeep
13,870
Posted By pvksandeep
Hi - Its working fine. One small...
Hi -

Its working fine.

One small clarification in the code.

Forgot to mention earlier.. My string can have spaces in between.. If I give a space in regexp.. its working

my...
13,870
Posted By pvksandeep
Thanks Skrynesaver. Only doubt here is .. If...
Thanks Skrynesaver.
Only doubt here is .. If atleast one column value is not matched in a record. I have to replace it with NULL.
That is , in Accepted.txt if a column value is not matched like
...
13,870
Posted By pvksandeep
I tried reading each and every line of the file. ...
I tried reading each and every line of the file.
And for each line, split using "|", and store each column value in an array.
Now for each column value check whether matching pattern or not.
If...
13,870
Posted By pvksandeep
Yes. We need to search entire record whether...
Yes. We need to search entire record whether matching or not. If atleast one column attribute is not matching we have write to reject file. And make the accept file as below

Original - Ravi*123 |...
13,870
Posted By pvksandeep
PERL pattern matching in a file
Hi Gurus,

I have a file like below.. I have to match each with predefined pattern. If matches then have to write the entire record to a separate file. If not make the value as NULL and write the...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 04:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy