Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: apt-get install certbot 
Shell :: a script that generates the assembly code of a c code and save it in an output file 
Shell :: git configure default editor 
Shell :: reinit git-submodules 
Shell :: yarn add install all packages in package,json 
Shell :: change execution policy in powershell 
Shell :: remove user linux 
Shell :: Installing plugins with vim-plug 
Shell :: shell method 
Shell :: start xampp 
Shell :: ubuntu empty a file 
Shell :: install jekyll 
Shell :: how to unmerge branch in git 
Shell :: dual boot kali linux isnt showing 
Shell :: install rancher 
Shell :: install typescript in node project 
Shell :: search file in linux terminal 
Shell :: wsl 2 reboot ubuntu 
Shell :: microsoft-todo-unofficial ubuntu 
Shell :: pass awk varible to bash 
Shell :: check nativescript version 
Shell :: flutter cocoapods not installed 
Shell :: bash scripts options without arg 
Shell :: copy one branch to another git 
Shell :: how to check the parent branch in git 
Shell :: change language to english in centos 
Shell :: use find command to search file contents 
Shell :: yum install package with version 
Shell :: remove users from linux 
Shell :: install extension pgcrypto 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =