Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to replace a string in multiple files in linux command line

cd /path/to/your/folder
sed -i 's/foo/bar/g' *
Comment

PREVIOUS NEXT
Code Example
Shell :: npm bootstrap 
Shell :: bash user input yes no 
Shell :: install flask ubuntu 20.04 
Shell :: pip install from github ssh 
Shell :: apollo client install 
Shell :: ubuntu activate bluetooth 
Shell :: bash how many files in a directory 
Shell :: install oh my zsh ubuntu 
Shell :: conda install open3d in specific environment 
Shell :: ubuntu not showing currently open application icons 
Shell :: install memcache di linux 
Shell :: docker logs last few lines 
Shell :: awk if else statement 
Shell :: hwo to add custom commands in bash 
Shell :: echo with color from bash 
Shell :: infinite loop bash 
Shell :: install vnc server pi 
Shell :: laravel download 
Shell :: vim how to append to every line 
Shell :: sum decimals bash 
Shell :: upgrade seaborn version 
Shell :: docker prune -a 
Shell :: kali linux change keyboard layout 
Shell :: nvm change node version 
Shell :: push code to github repository from command line 
Shell :: bash adb command not found... on linux 
Shell :: bash do multiple times 
Shell :: uninstall node using n 
Shell :: ansible copy 
Shell :: shell load file as variable 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =