Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by vgersh99

  1. vgersh99

    Grouping Multiple line cols to a single row

    Hmmm..... Were you already given a 'starting' point here? vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  2. vgersh99

    Selecting values diagonally in a matrix file

    This is not what's been posted originally. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  3. vgersh99

    Selecting values diagonally in a matrix file

    Try the same with 'awk'. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  4. vgersh99

    Selecting values diagonally in a matrix file

    nawk -v s='1,2' -v e='4,4' -f mg.awk myMatrix.txt mg.awk: BEGIN { split(s,sA, ",") split(e,eA, ",") } NR>=sA[1] && NR<=eA[1] {print $(sA[2]+ c++)} vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  5. vgersh99

    pipe to whois

    or alternatively: awk '{print "whois " $5}' temp.log | sh vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  6. vgersh99

    Literature, compilers, etc

    Look into this link. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  7. vgersh99

    Overlap filter in between two file

    I don't quote follow the output - what's being repeated? How do expect to 'relate' records/lines from both files? What's the common key/fields relating lines/records from both files? Can you give a very simple sample of both files (1 line each) AND a desired result based on the sample data...
  8. vgersh99

    Overlap filter in between two file

    assuming data1: 1 59851 59880 CATTCTAGTGTAAAGTTTTAGATCTTATAT 1 59881 59910 AACTGTGAGATTAATCTCAGATAATGACAC 1 59911 59940 AAAATATAGTGAAGTTGGTAAGTTATTTAG 1 59941 59970 TAAAGCTCATGAAAATTGTGCCCTCCATTC 1 59971 60000 CCATATAATTTAGTAATTGTCTAGGAACTT 1...
  9. vgersh99

    Overlap filter in between two file

    Your output does not jive exactly with your sample input file and your 'testing' formula. Re-validate your either your 'formula' or your desired output. I've implemented your formula as is: nawk -f demis.awk data1 data2 FNR==NR { f1[$2,$3]=$1 next } { for (f1iter in f1) {...
  10. vgersh99

    how manipulate the data with specif format

    it's already been answered here vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  11. vgersh99

    Print information between [ and ]

    Given the sample pattern given: awk -F'[][]' '{print $(NF-1)}' myFile vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  12. vgersh99

    Extracting data from files along some coordinates

    without seeing what you've tried so far. it's hard to say..... vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  13. vgersh99

    Selecting Files based on content value

    #!/bin/ksh for file in * do [ grep -q 'Med Admin Rpt' "${file}" 2>/dev/null ] && cp "${file}" /path/to/different/directory done vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  14. vgersh99

    Compare two files

    BEGIN { FS=OFS=sprintf("\t") } { idx = $1 FS $2 FS $3 } NR==FNR { arr[idx] = $4 FS $5; next } idx in arr { printf("%s%s%s%s%s\n", idx, OFS, arr[idx], OFS, $9) } vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
  15. vgersh99

    Compare two files

    It's not that "you are not direct with the questions" - you're not showing your OWN effort along the way. It's somewhat disconcerting seeing an OP leaching solutions from multiple sites and posting someone else's solution as his/her own. At least have the courtesy of quoting someone else's work...

Part and Inventory Search

Back
Top