0
I have multiple log files and I want to display its joint output. One way of doing this is by executing this command:
tail file-1 file-2
But I also want to display only a specific number of lines and if I include the number of lines parameter in this command like this:
tail -n file-1 file-2
OR
tail -n file-1 -n file-2
It says tail: option used in invalid context
So how do I do this?
Slight rectification in your command: tail -n x-lines file-1 -n y-lines file-2 – Punit Naik – 2016-01-12T07:29:21.307