Change field3 based on Field2 (If not this than 0)
Posted: Tue Oct 26, 2010 8:17 pm
I have a CSV file with 3 columns
Field1,Field2,Field3
Example
123,SLSSYS1000,1
123,SLSSYS1000,1
123,SLSSYS1008,1
323,SLSSYS1000,1
323,SLSSYS1008,1
323,SLSSYS1000,1
321,SLSSYS1008,1
321,SLSSYS1000,1
321,SLSSYS1000,1
I would like to change the 1 to 0 if Field2 does not match SLSSYS1008
So my output would look like this
123,SLSSYS1000,0
123,SLSSYS1000,0
123,SLSSYS1008,1
323,SLSSYS1000,0
323,SLSSYS1008,1
323,SLSSYS1000,0
321,SLSSYS1008,1
321,SLSSYS1000,0
321,SLSSYS1000,0
Note: I have both Wildedit and Textpad
Is this possible in either tool?
Thanks
Steve
Field1,Field2,Field3
Example
123,SLSSYS1000,1
123,SLSSYS1000,1
123,SLSSYS1008,1
323,SLSSYS1000,1
323,SLSSYS1008,1
323,SLSSYS1000,1
321,SLSSYS1008,1
321,SLSSYS1000,1
321,SLSSYS1000,1
I would like to change the 1 to 0 if Field2 does not match SLSSYS1008
So my output would look like this
123,SLSSYS1000,0
123,SLSSYS1000,0
123,SLSSYS1008,1
323,SLSSYS1000,0
323,SLSSYS1008,1
323,SLSSYS1000,0
321,SLSSYS1008,1
321,SLSSYS1000,0
321,SLSSYS1000,0
Note: I have both Wildedit and Textpad
Is this possible in either tool?
Thanks
Steve