Ok, the code from rdcwayx seems to work some way, but there's a thing that i don't understand, for exmaple in my file I have these lines:
5143 execve("/bin/ls", ["ls"], [/* 38 vars */] <unfinished ...>
5143 <... execve resumed> ) = 0
awk 'NR==FNR && !/resumed>/ {a[$1]=$0;b[$1]=$NF}
NR>FNR && /resumed>/ {$NF=b[$1] FS $NF; a[$1]=$0}
END { for (i in a) print a[i]}' urfile urfile
and I need to write this:
5143 execve("/bin/ls", ["ls"], [/* 38 vars */] <unfinished ...> <... execve resumed> ) = 0
but it only writes:
5143 <... execve resumed> ) = ...> 0
thank you for helping me, I very appreciate that