In this article let’s discuss about How to print odd or even lines in bash. Let’s go through the following methods without any delay.
# Basic syntax: sed -n 'n;p' input_file # Print even numbered lines sed -n 'p;n' input_file # Print odd numbered lines
Hope the above solution works.
Realted Posts : How to install docker in snap