LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with 'tail' (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-tail-4175419307/)

qrange 07-30-2012 02:45 AM

problem with 'tail'
 
I'm trying to skip first line with:
..| tail -n +2 |..

and it does skip it. But the problem is, if there is only one line, it doesn't give 'NULL' output.
How to skip first line so that there is no output if there is no second line?

eSelix 07-30-2012 03:49 AM

But there is empty output. You have error elsewhere.


All times are GMT -5. The time now is 11:25 AM.