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 Mike Lewis 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. Awksome

    Subtraction of Decimals in Perl

    Hi All, I have a simple perl script which subtracts two variables holding decimal numbers and the results is not as expected. $a = 417747646.853143 $b = 417747646.853142 $c = $a-$b expected result = $0.000001 actual result = -9.5367431640625e-07 any idea on why I am getting wrong results?
  2. Awksome

    Compare Fields from two text files using key columns

    Hi All, I have two files to compare. Each has 10 columns with first 4 columns being key index together. The rest of the columns have monetary values. I want to read one file into hash; check for the key value availability in file 2; then compare the values in the rest of 6 columns; report the...
  3. Awksome

    AWK in bash to compare files

    Thanks Anni!!! I made few modifications as per my requirement and it works great... Thanks for the wonderful code!
  4. Awksome

    How to ignore the header record?

    Thanks for the response! but I have 2 files and I am processing the files to compare values.
  5. Awksome

    AWK in bash to compare files

    Also, the first record in both the files are Header and need to avoid that in processing. Thanks!
  6. Awksome

    How to ignore the header record?

    I have a file with a header record. I want to ignore reading the header record using AWK. Please advise.
  7. Awksome

    AWK in bash to compare files

    Thanks Annihilannic!!!! This code works like a miracle! I still have one question though. When I run this code on my files, I see that the output still shows the difference because of scientific value representation. Here is a sample output: key 10139 D000 field 4 differs: -1.19119e+06...
  8. Awksome

    AWK in bash to compare files

    Thanks for the response! Now that I read through your code, I am getting confused with variable File1. Since both the files names are same in the two directories, now that I am trying to replace the names as per my requirement and just not sure which file is what. can you detail your code...
  9. Awksome

    Can I call Javascript from Bash?

    I have a working Javascript. Can I call this script within bash to run? If so, please help with the code for the same. Thanks!
  10. Awksome

    AWK in bash to compare files

    Thanks for the response! The fields are tab delimited. Just for clarity purpose I used ";". I will try this code. But I need two other checks to be performed as well: 1. MAtch th enumber of records on both files. It should e same. 2. The values being compared are reprensented differently. For...
  11. Awksome

    AWK in bash to compare files

    I have "n" files in directory A and "n" files in directory B. The files are expected to be the same with same data. Each file has 14 columns and "x" rows. Of the 14 column, 2 columns are to be considered as key identifiers. Based on this unique combination, I need to compare each field value...

Part and Inventory Search

Back
Top