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 :: change user:dir to linux dir/file 
Shell :: move file in terminal 
Shell :: run existing image docker 
Shell :: copy files from local to host ssh 
Shell :: change linux user password 
Shell :: install rvm for ruby 
Shell :: install insomnia in ubuntu 
Shell :: expo app size 
Shell :: react native typescript template 
Shell :: linux switch user 
Shell :: Git create a new repository on the command line 
Shell :: vim delete to end of file 
Shell :: create github ssh key 
Shell :: windows terminal background image 
Shell :: upload git repository to github 
Shell :: run mongo cli 
Shell :: my ip 
Shell :: makefile 
Shell :: how to delete all ufw rules 
Shell :: ssh permissions are too open 
Shell :: undo git commit after push 
Shell :: installing flutter_native_splash 
Shell :: install pycharm ubuntu 
Shell :: how to install gdal on pyhon 3.9 
Shell :: ssh rsa key login 
Shell :: docker run --entrypoint bash 
Shell :: see file from previous commit git 
Shell :: Clone repository from the command line 
Shell :: merge_otu_tables.py qiime 
Shell :: cmake comment 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =