Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
How to replace a string in multiple files in linux command line
Chantele Maartens
Programming language:
Shell/Bash
2021-05-17 09:49:43
1
Q:
How to replace a string in multiple files in linux command line
dbliss
Code:
Shell/Bash
2021-02-13 08:31:25
cd /path/to/your/folder sed -i 's/foo/bar/g' *
1
Tags
string
line
file
files
multiple
replace
linux
command
how
Related
ubuntu command line replace word in files
vim replace multiple lines
linux vim replace all
bash cut delimiter multiple spaces
append a string in all files name linux
linux replace string in files recursively
linux find files without string
bash search and replace text in file
linux replace string in all files
how to create multiple files in a directory in linux
bash print lines that contain multiple specific words
command line how to find all files that have a string
bash split file into multiple files
bash replace comma with newline
count occurrences of word in file linux ignoring case
New to Communities?
Join the community