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 gkittelson 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. abdu22

    Re-arrange a file!

    Thanks Annihilannic,, It's good idea.. :-)
  2. abdu22

    Re-arrange a file!

    Hi, I have an input file whose this format: 0.00000E+00 .0000 0.00000E+00 .0000 0.00000E+00 .0000 0.00000E+00 .0000 0.00000E+00 .0000 1.39259E-06 .0643 1.83690E-06 .0547 2.36873E-06 .0488 3.12521E-06 .0427 3.23615E-06 .0419 2.85301E-06 .0448 2.98344E-06 .0423...
  3. abdu22

    About associative array

    Thanks Salem... that's... :-)
  4. abdu22

    About associative array

    Hello, I have two files: file1 ---- Src BdU BoH BFL BFR BdW BLL BLR Bdr file2 --- Src Lvr BdU 1.906e-16 BdW 4.199e-16 Bdr 2.869e-16 BLL 1.975e-16 BLR 2.343e-16 BoH 2.625e-15 BFL 3.890e-16 BFR 4.756e-16 BoL 3.091e-16 BoR 3.711e-16 Brn 2.224e-16 Car 1.542e-12 Col...
  5. abdu22

    Add a new column!

    Thank you Mike042 for this thought.... May be it will help me for the second choice.. :-)
  6. abdu22

    Add a new column!

    Hi feherke... you are right.. but it is difficult to explain the whole problem.. I think I will output the results of each step to a temp file then join the temp files togther... Thanks
  7. abdu22

    Add a new column!

    Thanks p5wizard but I don't have two files to be merged!.. my script has many steps; after the first step I have an output file, in the next steps I'd like to continue writing on the same output file but adding the results in columns.. I wish it's clear now :-)
  8. abdu22

    Add a new column!

    Hi, I have this output file: RET1 Src1 Tgt1 5 Tgt2 6 Tgt3 8 . . I want to read other data and add the results in the third column of previous output file.. to get this one: RET1 Src1 Src2 Tgt1 5 2 Tgt2 6 3 Tgt3 8 1 . . How can I add the new data to be in columns...
  9. abdu22

    Check the output file before writing on it

    It is better now :-) Thanks a lot Annihilannic..
  10. abdu22

    Check the output file before writing on it

    Annihilannic : Thank you for your codes... Just one thing may I should precise: I can't read all the files at once because I need the the results to be in a special order... I applied your first code and it gives the results like this: Erg1 Erg2 Erg3 Erg4 Erg5 10 25 85 45 23 12...
  11. abdu22

    Check the output file before writing on it

    mberni & Annihilannic : Thanks for your answers... Suppose I have three files as follows: (XXX10IPo) Erg1 12 Erg2 15 Erg3 20 Erg4 17 Erg5 11 (XXX20IPo) Erg1 22 Erg2 55 Erg3 32 Erg4 11 Erg5 12 (XXX01CPo) Erg1 10 Erg2 25 Erg3 85 Erg4 45 Erg5 23 And the srcipt: (Script.awk) {if...
  12. abdu22

    Check the output file before writing on it

    Hi, I have many files to be read and then put the results in ONE Output file... The output file should have this line as first line: Erg1 Erg2 Erg3 Erg4 Erg5 The results will be arranged below this line like this: Erg1 Erg2 Erg3 Erg4 Erg5 12 15 20 17 11 22 55 32 11...
  13. abdu22

    Help with AWK!

    According to my knowledge, I found this method in two steps : 1- awk '{if (NF==8) printf ($1"\n"$3"\n"$5"\n"$7"\n")}' input > out 2- awk 'BEGIN {j=0} {if (NF>0) printf ($1" "); j++;} {if (j==146) {printf ("\n"); j=0;}}' output > Results
  14. abdu22

    Help with AWK!

    Hi All, I have a file with 1215450 lines long, here is few lines: 1.06189E-08 0.6320 0.00000E+00 0.0000 0.00000E+00 0.0000 2.66971E-09 1.0000 0.00000E+00 0.0000 0.00000E+00 0.0000 0.00000E+00 0.0000 0.00000E+00 0.0000 1.27355E-10 1.0000 7.50482E-10 1.0000 0.00000E+00 0.0000...

Part and Inventory Search

Back
Top