Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

insert a line at a line number sed

sed -i '8i8 This is Line 8' FILE

8 This is Line 8
Comment

sed insert at specific line number

$ sed '3 i New Line with sed' File1
Line #1
Line #2
New Line with sed
Line #3
Line #4
Comment

PREVIOUS NEXT
Code Example
Shell :: git flow new feature branch 
Shell :: redis remove key 
Shell :: bat cd to directory 
Shell :: install fleetssl 
Shell :: chmod 777 command in linux 
Shell :: command not found: shopify 
Shell :: git got to previous commit 
Shell :: how to set global github username and password in git 
Shell :: remove white space from stering in bash 
Shell :: remove last commit 
Shell :: apt update package 
Shell :: Hello, World! 
Shell :: prettier-plugin-tailwindcss 
Shell :: laravel 4 installer 
Shell :: run mongodb locally 
Shell :: centos remove directory and all files 
Shell :: check user shell in linux 
Shell :: not null check in powershell variable 
Shell :: wsl2 vs virtualbox performance 
Shell :: linux check ssh connections 
Shell :: push existing repository 
Shell :: set email and name which gets baked into the every git commit in the local config file found in ./.git/config 
Shell :: td-agent restart 
Shell :: install anbox terminal 
Shell :: install mpg321 
Shell :: git push existing code to new repository 
Shell :: docker login command line push 
Shell :: zsh: permission denied: ./manage.py for django projects 
Shell :: linux command to go to the previous directory 
Shell :: redis download 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =