Answers for "bash print odd or even lines"

1

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
Posted by: Guest on December-22-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language