I have a script ( a dirty one ) that roughly do the bellow stuff:
- Take a file with two ids : id1,id2
- For each id1, it call an API using curl ( id1 is a cookie value ) and grab result
-- and output id2, result
Problem : the partner that send us thr raw file send us id2 with sometimes lowercase and sometimes uppercase . As a sresult , we have dobblons .
Same id2 but one lowercase, the other uppercase.
-> we must have only one line in the output .
the value of id1 ( 000OfDqFtBXT69 ) doesn't matter . Just take the first
With the same sample :
Current output ( bad ) :
9451ead0f93e2abb440681fb16142578 ; WEBO3412
Good output :
Todo : Make the script output without any dobblons.
( You can uppercase all id2 but DON'T CHANGE ID1 IN ANY WAY ) .