How do you skip a line in a shell script?

Đạt Michio

New member
How do you skip a line in a shell script?
Answer
Using head to get the first lines of a stream, and tail to get the last lines in a stream is intuitive. But if you need to skip the first few lines of a stream, then you use tail “-n +k” syntax. And to skip the last lines of a stream head “-n -k” syntax.
 

Tìm kiếm

Back
Top