How to skip first line of a file and read the remaining lines as input of a C program?
linux, shell
Solution
Erm...
tail -n +2 a.csv | ./myProgram
Problem
How to write the shell command to skip the first line in file `a.csv` and redirect the remaining lines as input to `myProgram`, which is my C program? I wrote ``` ./myProgram < a.csv | tail -n + 2 ``` But this does not work, it seems like it will skip the first line of the output from `myProgram`.