Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to delete a word from a file in bash

sed -i 's/word-to-find//g' input.file.path

#note: if you are word-to-find is a variable, put it in single quotations > ex : 's/'$var'//g'
Comment

how to delete a word from a bash file

sed -i 's/word-to-find//g' input.file.path

#note: if you are word-to-find is a variable, put it in single quotations > ex : 's/'$var'//g'

Comment

PREVIOUS NEXT
Code Example
Shell :: linux view kernel version 
Shell :: unistall filezilla ubuntu 
Shell :: how to update powershell version 
Shell :: install rvm ubuntu 20.04 
Shell :: fetch a particular branch git 
Shell :: youtube-dl continue 
Shell :: pip uninstall package and dependencies 
Shell :: journalctl tial 
Shell :: kdenlive dark mode for linux 
Shell :: bash open programm when exists 
Shell :: github gitattributes ignore files for statistics 
Shell :: how to collect GREPCC coin in grepper 
Shell :: rvm install new ruby version 
Shell :: restart docker daemon 
Shell :: sticky notes for ubuntu 20.04 
Shell :: heroku delete app 
Shell :: find gradle version 
Shell :: change git commit date 
Shell :: files changed in a commit 
Shell :: create necxt app 
Shell :: cordova ios emulators 
Shell :: how to extract key and cert from pfx 
Shell :: where is the mpv config file linux 
Shell :: batch sleep 
Shell :: how to disable gui in mint 
Shell :: brew update 
Shell :: node-gyp rebuild 
Shell :: git cleanup remove removed 
Shell :: how to get divided number in mac terminal 
Shell :: libxml2 install 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =