Hi everyone. Another newbie question I'm afraid which I've been racking my brain trying to build a solution for and again, I suspect there is an easy solution as I don't think what I want to do is too out the ordinary!
I have a delimited text file such as the one below:
What I want to do is look through the 'Name' field and do something like:
if [ $Name != ^Dave ]
Class=XXXX
So the table would look like:
I've literally tried everything I can and ended up looking at trying to write a snippet of Java code to execute against each row but I'm a Perl guy and have zero knowledge of Java.
Could someone at least point me in the right direction? Not asking for a specific answer but a pointer would be greatly appreciated!
Many Thanks
Dave
I have a delimited text file such as the one below:
Date | Name | Class |
10/07/2014 | Dave | 1234 |
10/07/2014 | Paul | X876 |
10/07/2014 | Dave | 3453 |
10/07/2014 | Oscar | ds77 |
10/07/2014 | Oscar | e453 |
10/07/2014 | Dave | a868 |
What I want to do is look through the 'Name' field and do something like:
if [ $Name != ^Dave ]
Class=XXXX
So the table would look like:
Date | Name | Class |
10/07/2014 | Dave | 1234 |
10/07/2014 | Paul | XXXX |
10/07/2014 | Dave | 3453 |
10/07/2014 | Oscar | XXXX |
10/07/2014 | Oscar | XXXX |
10/07/2014 | Dave | a868 |
I've literally tried everything I can and ended up looking at trying to write a snippet of Java code to execute against each row but I'm a Perl guy and have zero knowledge of Java.
Could someone at least point me in the right direction? Not asking for a specific answer but a pointer would be greatly appreciated!
Many Thanks
Dave