Skip to main content
added 63 characters in body
Source Link
Marcus
  • 308
  • 3
  • 9

I want to monitor/follow changes of a CSV file (some logging output of a robot). It is a huge file with <TAB> as delimiter and the first row with header information. However

So far, I am using the output of tail - f <file.csv>, but it is not formatted per column, and looks like:

yAccelRaw       zAccelRaw       xGyroRaw    ... ... ...
3       256     1   ... ... ...
4       255     3   ... ... ... 
4       255     -6  ... ... ...
3       253     -1  ... ... ...
4       254     2   ... ... ...
5       255     0   ... ... ...
4       255     3   ... ... ...
5       254     3   ... ... ...
5       253     -1  ... ... ...
4       255     3   ... ... ...

UnderstandingWith a CSV with 30 or more columns, understanding which value belongs to which column is not really easy. I was wandering if there is a general solution for printing the output formatted as table? Simply piping to column is not possible.

So far, I use tail -f <file.csv> | cut -f5,6 to cut out specific columns and observe their output, but I would prefer the full overview. Also, I tried piping the result to column which doesn't get updated.

I want to monitor/follow changes of a CSV file (some logging output of a robot). It is a huge file with <TAB> as delimiter. However, the output of tail - f <file.csv> is not formatted per column, and looks like:

yAccelRaw       zAccelRaw       xGyroRaw    ... ... ...
3       256     1   ... ... ...
4       255     3   ... ... ... 
4       255     -6  ... ... ...
3       253     -1  ... ... ...
4       254     2   ... ... ...
5       255     0   ... ... ...
4       255     3   ... ... ...
5       254     3   ... ... ...
5       253     -1  ... ... ...
4       255     3   ... ... ...

Understanding which value belongs to which column is not really easy. I was wandering if there is a general solution for printing the output formatted as table? Simply piping to column is not possible.

So far, I use tail -f <file.csv> | cut -f5,6 to cut out specific columns and observe their output, but I would prefer the full overview.

I want to monitor/follow changes of a CSV file (some logging output of a robot). It is a huge file with <TAB> as delimiter and the first row with header information.

So far, I am using the output of tail - f <file.csv>, but it is not formatted per column, and looks like:

yAccelRaw       zAccelRaw       xGyroRaw    ... ... ...
3       256     1   ... ... ...
4       255     3   ... ... ... 
4       255     -6  ... ... ...
3       253     -1  ... ... ...
4       254     2   ... ... ...
5       255     0   ... ... ...
4       255     3   ... ... ...
5       254     3   ... ... ...
5       253     -1  ... ... ...
4       255     3   ... ... ...

With a CSV with 30 or more columns, understanding which value belongs to which column is not really easy. I was wandering if there is a general solution for printing the output formatted as table?

So far, I use tail -f <file.csv> | cut -f5,6 to cut out specific columns and observe their output, but I would prefer the full overview. Also, I tried piping the result to column which doesn't get updated.

make <tab> visible
Source Link
meuh
  • 54.7k
  • 2
  • 70
  • 138

I want to monitor/follow changes of a CSV file (some logging output of a robot). It is a huge file with as<TAB> as delimiter. However, the output of tail - f <file.csv> is not formatted per column, and looks like:

yAccelRaw       zAccelRaw       xGyroRaw    ... ... ...
3       256     1   ... ... ...
4       255     3   ... ... ... 
4       255     -6  ... ... ...
3       253     -1  ... ... ...
4       254     2   ... ... ...
5       255     0   ... ... ...
4       255     3   ... ... ...
5       254     3   ... ... ...
5       253     -1  ... ... ...
4       255     3   ... ... ...

Understanding which value belongs to which column is not really easy. I was wandering if there is a general solution for printing the output formatted as table? Simply piping to column is not possible.

So far, I use tail -f <file.csv> | cut -f5,6 to cut out specific columns and observe their output, but I would prefer the full overview.

I want to monitor/follow changes of a CSV file (some logging output of a robot). It is a huge file with as delimiter. However, the output of tail - f <file.csv> is not formatted per column, and looks like:

yAccelRaw       zAccelRaw       xGyroRaw    ... ... ...
3       256     1   ... ... ...
4       255     3   ... ... ... 
4       255     -6  ... ... ...
3       253     -1  ... ... ...
4       254     2   ... ... ...
5       255     0   ... ... ...
4       255     3   ... ... ...
5       254     3   ... ... ...
5       253     -1  ... ... ...
4       255     3   ... ... ...

Understanding which value belongs to which column is not really easy. I was wandering if there is a general solution for printing the output formatted as table? Simply piping to column is not possible.

So far, I use tail -f <file.csv> | cut -f5,6 to cut out specific columns and observe their output, but I would prefer the full overview.

I want to monitor/follow changes of a CSV file (some logging output of a robot). It is a huge file with <TAB> as delimiter. However, the output of tail - f <file.csv> is not formatted per column, and looks like:

yAccelRaw       zAccelRaw       xGyroRaw    ... ... ...
3       256     1   ... ... ...
4       255     3   ... ... ... 
4       255     -6  ... ... ...
3       253     -1  ... ... ...
4       254     2   ... ... ...
5       255     0   ... ... ...
4       255     3   ... ... ...
5       254     3   ... ... ...
5       253     -1  ... ... ...
4       255     3   ... ... ...

Understanding which value belongs to which column is not really easy. I was wandering if there is a general solution for printing the output formatted as table? Simply piping to column is not possible.

So far, I use tail -f <file.csv> | cut -f5,6 to cut out specific columns and observe their output, but I would prefer the full overview.

Source Link
Marcus
  • 308
  • 3
  • 9

Monitor/follow CSV file changes/updates in a tabular view/format

I want to monitor/follow changes of a CSV file (some logging output of a robot). It is a huge file with as delimiter. However, the output of tail - f <file.csv> is not formatted per column, and looks like:

yAccelRaw       zAccelRaw       xGyroRaw    ... ... ...
3       256     1   ... ... ...
4       255     3   ... ... ... 
4       255     -6  ... ... ...
3       253     -1  ... ... ...
4       254     2   ... ... ...
5       255     0   ... ... ...
4       255     3   ... ... ...
5       254     3   ... ... ...
5       253     -1  ... ... ...
4       255     3   ... ... ...

Understanding which value belongs to which column is not really easy. I was wandering if there is a general solution for printing the output formatted as table? Simply piping to column is not possible.

So far, I use tail -f <file.csv> | cut -f5,6 to cut out specific columns and observe their output, but I would prefer the full overview.