79806450

Date: 2025-11-01 09:56:59
Score: 2
Natty:
Report link

I would do it like this:

awk ā€˜{ a[FNR] = sprintf(ā€œ%s\t%sā€, a[FNR], $1)
if (m < FNR) m = FNR }
END { for (i=1; i <= m; i++) print a[i] }’ UE*.dat | tee UE_all.dat

This will give you all the first fields of all thirty files on there own line number.

This solution looks very much like https://stackoverflow.com/users/3337836/isosceleswheel suggested.

Note that this works for files having the same line count; if the files differ, and the numbers from each must be in their corresponding column, you must make some minor changes.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: TheRealRobbedoes