printing odd numbers in bash code example
Example: bash print odd or even lines
# Basic syntax:
sed -n 'n;p' input_file # Print even numbered lines
sed -n 'p;n' input_file # Print odd numbered lines
# Basic syntax:
sed -n 'n;p' input_file # Print even numbered lines
sed -n 'p;n' input_file # Print odd numbered lines