Search Results

Search: Posts Made By: jimmymj
1,753
Posted By jimmymj
see a better solution for unique and duplicate...
see a better solution for unique and duplicate records from a file:

sed '1d' $FILE1 | sort -t "|" +1 -3 > temp1
cat temp1 | awk -F"|" ' BEGIN{a=0}{a++; b[a]=$2$3; c[a]=$0} \
END { for(i=0;...
1,753
Posted By jimmymj
Hi Tinu, Please try out the below command ...
Hi Tinu,

Please try out the below command

sort -t "|" +1 -3 test_file |uniq -u
or
sed '1d' test_file|sort -t "|" +1 -3|uniq -u (removing the header line)

;)
~jimmy
Showing results 1 to 2 of 2

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