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. judkil

    AWK move lines of a file down

    It's ok !! Thank you very much !
  2. judkil

    AWK move lines of a file down

    Hello, I own input AB-0004 XXX XXX A8-0005 XXX AB-0007 XXX XXX AB-0008 XXX and I would like to get Output AB-0004 XXX XXX AB-0007 XXX XXX A8-0005 XXX AB-0008 XXX I would like to be able to move lines of a file down according to the number of columns whether with an awk or a sed but...
  3. judkil

    AWK getline and join by step

    I understand much better and especially to overcome the substr function! Thank you! ;)
  4. judkil

    AWK getline and join by step

    I just understood "key_array" a variable name. I thought it was a field ($1) or a number. Thank you very much !
  5. judkil

    AWK getline and join by step

    But key_array ,t's a field ($1) or just a number split($0,$1,"-") key = $1[1] "-" $1[2]
  6. judkil

    AWK getline and join by step

    Thank you very much ! However, I have a syntax problem when I replace key = key_array[1] "-" key_array[2] by key = 1[1] "-" 1[2] The name being in the fields 1.
  7. judkil

    AWK getline and join by step

    Thank you very much ! However I would like to be able to put any size of pattern and not limited to a length of 11. What to put in the substr ?
  8. judkil

    AWK getline and join by step

    It is not the same problem because Awk must join the short name "B" to the extended name "B_1". We are file_1: A B C file_2: A_1 C_2 C_1 B_4 A_2 A_3 B_1 output: A....A_1 ......A_2 ......A_3 B.....B_4 .......B_1 C....C_2 ......C_1 The order of appearance in file_1 is respected and the order of...
  9. judkil

    AWK getline and join by step

    227/5000 Hello I want to perform a join where AWK takes the name of a line in a first file, places it in fields 1 in the output file, then goes to a second file takes the extended names and places them in fields 2. file_1: AB-00050832 AB-00058394 AB-00050862 AB-00004123 file_2...

Part and Inventory Search

Back
Top