Me gustaría unir unos 100 archivos en el mismo directorio por columnas. Yo he tratado
paste file1 file2 | column -s $'\t' -t
Esto funciona bien para 2 archivos. Pero cuando intento hacerlo con 100 archivos, aparece un error que dice
column: line too long
¿Podría alguien ayudarme en lo que me estoy equivocando?
Respuesta1
No tienes ningún error. Es el límite de longitud de la línea de entrada, en bytes, definido por column
.
#define MAXLINELEN (LINE_MAX + 1)
LINE_MAX
se define en posix2_lim.h
, parte de GNU C library
:
/* The maximum length, in bytes, of an input line. */
#define _POSIX2_LINE_MAX 2048
.....
#ifndef LINE_MAX
#define LINE_MAX _POSIX2_LINE_MAX
Nota