Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

delete lines text file linux

sed -i '' '/pattern to match/d' ./infile
Comment

linux remove lines from file

grep -v "pattern" file > temp && mv temp file
Comment

linux remove lines from file

> sed '2,4d' file
Comment

PREVIOUS NEXT
Code Example
Shell :: delete add git 
Shell :: linux 
Shell :: update submodule 
Shell :: ssh copy folder 
Shell :: docker remove container 
Shell :: git undo deleted local branch 
Shell :: can not ping github 
Shell :: firebase kill port 
Shell :: bash scripts arguments 
Shell :: ash if statment 
Shell :: powershell script enable tls 1.2 
Shell :: sh or bash validate if file no exist 
Shell :: git merge with message 
Shell :: livewire ErrorException Undefined array key "id" 
Shell :: git branch -r 
Shell :: windows cmd remove a not empty directory 
Shell :: rsync exclude 
Shell :: restart odoo service ubuntu 
Shell :: check who is logged in to system linux 
Shell :: docker container with powershell 
Shell :: kubernetes pod stuck in terminating 
Shell :: install docker linux 
Shell :: install kubectl windows 10 
Shell :: terraform install on ubuntu 
Shell :: remove gitignore files 
Shell :: right click touchpad ubuntu budgie 
Shell :: add images in readme github file 
Shell :: how to copy file in ubuntu terminal 
Shell :: solana create keypair 
Shell :: linux list all system groups in order 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =