Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

vim delete line

# Basic syntax:
dd

# Note, add a number in from of dd to delete that many lines, e.g.:
5dd # Delete the next 5 lines
Comment

delete line in vi or vim

# navigate to line and type
dd
Comment

vim delete all lines

:1,$d
Comment

vim delete every other line

:1d|g/^/+d  # Every other odd line
Comment

vim delete every other line

:g/^/+d  # Every other even line
Comment

PREVIOUS NEXT
Code Example
Shell :: install notion enhancer 
Shell :: kill process unix 
Shell :: change email in git 
Shell :: netbeans 8.2 download ubuntu 
Shell :: gcloud scp 
Shell :: git clone tag 
Shell :: pipe command in linux 
Shell :: netstat pid 
Shell :: ubuntu make executable 
Shell :: TypeError [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. Received undefined at validateString (internal/validators.js:120:11) 
Shell :: View total data received and sent (Linux) 
Shell :: bash copy file 
Shell :: ssh-copy powershell 
Shell :: sudo apt-get install libboost-all-dev 
Shell :: how to login github in terminal 
Shell :: bash if substring in string 
Shell :: amplify remove environment 
Shell :: How install packages from package.tar.gz on rstudio 
Shell :: how to update to latest version of chrome in ubuntu 17.04 
Shell :: git save password 
Shell :: git pull with ssh 
Shell :: git delete branch upstream 
Shell :: postgres users can login with any or no password 
Shell :: ubuntu no internet connection 
Shell :: github add image to readme.md 
Shell :: bash regex if condition 
Shell :: how to check command history in linux with date and time 
Shell :: bash random int 
Shell :: linux rename files add prefix 
Shell :: shell one line for loop 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =