Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add line at beginning of file unix

sed -i '1s/^/your text
/' file #Note the addition of the "
" for concluding the new line after the insertion
Comment

add line to beginning of file shell script

$ sed -i '1s/^/added text /' file
Comment

PREVIOUS NEXT
Code Example
Shell :: show commit differences between branches git 
Shell :: top port scan nmap 
Shell :: shell script or condition 
Shell :: superclass mismatch for class Command 
Shell :: commmand for installing tailwind to react 
Shell :: push local branch to remote github 
Shell :: base64 decode command line ubuntu 
Shell :: how to install postgresql 
Shell :: what is difference between npm install and npm install save --dev 
Shell :: git merge develop to feature 
Shell :: prettier install using npm 
Shell :: cp bash 
Shell :: 76 packages are looking for funding run `npm fund` for details found 7 vulnerabilities (5 low, 1 moderate, 1 high) run `npm audit fix` to fix them, or `npm audit` for details 
Shell :: install appx 
Shell :: brew install mac 
Shell :: Invalid response body while trying to fetch 
Shell :: scikit-learn python 
Shell :: windows ssh tunnel 
Shell :: install elasticsearch 
Shell :: install windows app powershell 
Shell :: vim insert text at the the beginning of multiple lines 
Shell :: curl output to stdout 
Shell :: firewall-cmd add service 
Shell :: vim remove line by pattern from all files 
Shell :: how to run docker in ubuntu 
Shell :: how to install morgan in node js 
Shell :: set up ssh windows 10 
Shell :: record audio with ffmpeg 
Shell :: how to get deployment token from firebase 
Shell :: how to git pull origin master 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =