Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash replace specific line in file

# Basic syntax:
sed '<row_number>s/.*/<replacement_text>/' your_file
# Where:
#	- The row_number is the row your want to replace with the
#		replacement_text
#	- .* means match anything on that row (so it can be replaced)
Comment

PREVIOUS NEXT
Code Example
Shell :: install docker debian 
Shell :: bash create symbolic link to other symbolic links 
Shell :: ps see full command 
Shell :: Comandos Útiles Docker 
Shell :: Copy local repository for remote servers git 
Shell :: how to set umask in linux 
Shell :: remove empty page pdf 
Shell :: chmod recursive group read 
Shell :: create new repository in git bash 
Shell :: debian md5sum: command not found 
Shell :: proxy shell 
Shell :: concat strings inside array bash script 
Shell :: ubuntu install dbeaver 
Shell :: install scala on mac 
Shell :: git find commit id by message 
Shell :: docker change timezone 
Shell :: check port status linux 
Shell :: Using git filter-branch to Git Change Commit Author 
Shell :: vi search 
Shell :: clear tracked files from git 
Shell :: install beego ubuntu 
Shell :: pull from dev branch to master 
Shell :: linux check if screen is running 
Shell :: install wordpress in windows 10 
Shell :: how to use /dev/urandom 
Shell :: How to install NodeJs in CentOs? 
Shell :: delete archivelog sysdate-1 
Shell :: qemu download mac 
Shell :: hide date from terminal ubuntu 
Shell :: remove in terminal 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =