Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to exclude duplicate records while fetching the data from one file and put into another file.

$
0
0

Hi All,

I have file name "old.txt". The file contains the following data.(with Duplicate records)

I need to exclude the duplicate records where combination of 3rd and 4th columns are same and put it into another file "new.xtx"..

Note: There is no column names inside the file.

can any help me on this? This is very important.

Data in "old.txt" file with duplicate records.

EAICC             005584A021984Q3LD       12005      _1984-Vflag ON in the base so  cant value this policy
EAICC             005840A011985Q2CD      02777      _1985-no key 005840A in imvalgrp.tbl
EAICC             005584A021984Q3LD       02777      _1985-no key 005840A in imvalgrp.tbl
EAICC             005584A021984Q3LD       02774      _1985-no key 005840A in imvalgrp.tbl
EAICC             005584A021984Q3LD       02777      _1985-no key 005840A in imvalgrp.tbl
EAICC             005584A021984Q3LD       02777      _1985-no key 005840A in imvalgrp.tbl
EAICC             005584A021984Q3LD       02777      _1985-no key 005840A in imvalgrp.tbl
EAICC             005584A021984Q3LD       02778      _1985-no key 005840A in imvalgrp.tbl
EAICC             005584A021984Q3LD       02777      _1985-no key 005840A in imvalgrp.tbl
EAICC             005584A021984Q3LD       02777      _1985-no key 005840A in imvalgrp.tbl

Thanks & Regards,

Dinesh.



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>