Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: duplicates getting omitted while comparing values inside foreach.

by ambrus (Abbot)
on Apr 16, 2009 at 08:33 UTC ( [id://757893]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sort -ck3 file1.db
    sort -ck2 file2.query
    
  2. or download this
    join -a 2 -1 3 -2 2 -e - -o 2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,1.1 file1.
    +db file2.query | tee result
    
  3. or download this
    1190 31277 A > T 1 0 0 -
    1190 31607 C > A 0 3 1 -
    ...
    1190 32199 C > T 0 1 1 -
    1190 32487 T > C 0 1 1 -
    1190 32496 A > G 0 3 0 -
    
  4. or download this
    (sed 's/^\([^ ]*\) \([^ ]*\) \([^ ]* [^ ]* [^ ]*\) \([^ ]*\) \([^ ]*\)
    + \([^ ]*\)\(.*\)/\1    \2    \3    \4    \5    \6    \7/' result; ech
    +o; echo -n "Total number of HITS: "; grep -cv ' -$' result) |tee resu
    +lt.fmt
    
  5. or download this
    1190    31277    A > T    1    0    0     -
    1190    31607    C > A    0    3    1     -
    ...
    1190    32496    A > G    0    3    0     -
    
    Total number of HITS: 3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://757893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found