awk - Check which string in certain column is repeated -
I have to see that the string has to be repeated in my column 2.
For example: My output will be: Showing the entire line on the second row with the normal string. If you do not want to store all the files in memory, the best part is that the file Have to read twice As you reproduce the exact output you received, just pipe it on An apple b peach C grapes D peach e peach F. apple
An apple f apple peach d peach e peach
$ awk 'FNR == NR {a [$ 2] ++;
sort indicates that it was first column 2 and then column Sort by 1:
awk 'FNR == nr {a [$ 2] ++; Next} one [$ 2] & gt; 1 file file | Sort -2.2-K1
जावा प्रोग्रामिंग नमूना कोड स्निपेट
ReplyDeleteसभी रनिंग थ्रेड्स जावा प्रोग्राम को सूचीबद्ध करना