Trương Duy
New member
How do you skip the first line while reading a file in Unix?
Answer
1 Answer.
Use an extra read inside a compound command
. This is more efficient than using a separate process to skip the first line, and prevents the while loop from running in a subshell (which might be important if you try to set any variables in the body of the loop).
Answer
1 Answer.
Use an extra read inside a compound command
. This is more efficient than using a separate process to skip the first line, and prevents the while loop from running in a subshell (which might be important if you try to set any variables in the body of the loop).