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...
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.
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.