Search Results

Search: Posts Made By: narachaid
1,021
Posted By Don Cragun
Something like: awk ' v[$6] < $12 { v[$6] =...
Something like:
awk '
v[$6] < $12 { v[$6] = $12;l[$6] = $0 }
END { for(i in l) print l[i] }' file
seems to do what you want as long as the output order doesn't matter.

If you want to try this...
1,021
Posted By mjf
Another way: sort -k6,6 -k12,12nr filename |...
Another way:

sort -k6,6 -k12,12nr filename | awk '!line[$6]++'
1,867
Posted By Akshay Hegde
You may try awk solution its easy, Others might...
You may try awk solution its easy, Others might have sed solution

$ awk -F'[|]' '$5==100 && !A[$4]++ {print $4}' fileOR
$ grep -E '(100)' file | cut -d '|' -f4 | sort | uniqResulting
...
1,867
Posted By Scrutinizer
That is because of history expansion in bash,...
That is because of history expansion in bash, which interprets the exclamation mark, even within double quotes. You need to use single quotes like Akshay showed, not double quotes.
You can turn off...
1,230
Posted By MadeInGermany
awk 'NR==FNR {A[$1]=$2; next} ($1 in A) {$1=$1 FS...
awk 'NR==FNR {A[$1]=$2; next} ($1 in A) {$1=$1 FS A[$1]} 1' FILE1 FILE2
1,230
Posted By Yoda
Using awk: awk...
Using awk:
awk 'NR==FNR{A[$1]=$2;next}A[$1]{$2=A[$1]}1' FILE1 FILE2
804
Posted By in2nix4life
awk '{split($2,a,".");print $1" fx"a[1]}' file ...
awk '{split($2,a,".");print $1" fx"a[1]}' file

aran24352 fx14
aran08740 fx07
aran76153 fx17
aran76513 fx01
aran54894 fx04
1,569
Posted By msabhi
awk -F"\t" '$4<=1.0e-02' tmp
awk -F"\t" '$4<=1.0e-02' tmp
1,569
Posted By radoulov
awk -F= '$2 <= 1.0e-02' infile
awk -F= '$2 <= 1.0e-02' infile
Showing results 1 to 9 of 9

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