I have a program that reads data from a file in this way
root@root# myprogram < inputfile.txt
Now I want my program to read the input file from the 3rd line and not from the beginning of the file.
I have to use < inputfile.txt
. I can not call with pipe because of variable scope issues
Is there a way to do that in Linux?