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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bholav

    Search and replace in a array ??

    Was able to accomplish it, thanks a bunch !!!
  2. bholav

    Search and replace in a array ??

    CaKiwi, which key do I use after awk just before open and close of flower bracket ? I'm sorry , new to AWK and trying my best...
  3. bholav

    Search and replace in a array ??

    CaKiwi, here's my explanation on my second question. I have a file XXXXXXX that needs to be renamed by extracting line2 & line3 of the file . line1:CEIVDE:TC2000FIN line2:TOL:D62857...
  4. bholav

    Search and replace in a array ??

    Thanks for your replies CaKiwi,sorry I was out for the last few days. I was able to resolve the situation mentioned above. I need your help on the usage of SKIP command. I need to skip say, first five lines,how do I do it? Secondly, how do I rename a file based on the content of certain field ...
  5. bholav

    Search and replace in a array ??

    I have a patten like the one below, I need to search each field and replace the caracter if it meets a criteria for example on line 1 below ,I'll search for a 1 , I'll check if its euqal to 1 ,if yes,don't do anything if not, replace the character with a "X" . I also will leave the...
  6. bholav

    How locate a field on a certain line

    How do I tell AWK to look for a certain "field" on a "certain" line
  7. bholav

    I need help on : how to compare two

    I need help on : how to compare two different fields on two differnt lines ,for example in the file below, . . . . . . . . . . . . 1 . 1 1 1 . . . . . . . . . . . . . . . . . . . . . . . 1 1 . 1 1 . 1 . . . . . . . . . . . . . . . . . . . 1 1 . 1 1 . 1 1 . 1 1 1 . . . . . . . . . 2 7 9 9 2 3 2...
  8. bholav

    getting vars from 2 different lines in a file

    Could anyone help on "how to compare two fields from two different lines. For example in the file below, compare field 13(which is a "1") on line 1 with filed 1 of line 4 (which is "2") and replace field 13 with the outcome of comparison. . . . . . . . . . . . . 1 . 1 1...
  9. bholav

    AWK question

    I have two files that read like below. a. I need to create a third file that is output in the same format as the two files after comapring the individual fields , for example comparison $3 of file1 is 7 and file2 is 1. Since they are not equal I'd like to output a "1" if not a...
  10. bholav

    A. I need to set a loop to compare

    On question A , I need to compare an array of 35,35 elements to create a third file of the same array size
  11. bholav

    A. I need to set a loop to compare

    A. I need to set a loop to compare ascii characters in fields from two different files and create a third file which has a result of the comparison in the same field . B.how to limit the comparison to certain ASCII characters( say 0-20 and ignore comparison if a certain character say , a...
  12. bholav

    To use AWK to find certain two fields from two files and create a thir

    c.how to limit the comparison to certain ASCII characters and ignore comparison if a certain character say , a "." is encountered . Thanks,
  13. bholav

    To use AWK to find certain two fields from two files and create a thir

    It works (pls ignore my comment above), the file names cannot be similar. Thanks, how do I set a loop to do the same for 35 fields?Thank you.
  14. bholav

    To use AWK to find certain two fields from two files and create a thir

    Hello , thanks for respoding.. when I run this on two files that has similar lines ( fields separated by tab) like: ...... 111111 ...... I don't get a : equal equal eqaul instead the third file is blank.... Also, a.how do a conert a file that has a ascii string like: 297890012 in to...
  15. bholav

    To use AWK to find certain two fields from two files and create a thir

    I need to compare ascii characters in fields from two different files and create a third file which has a result of the comparison in the same field.

Part and Inventory Search

Back
Top