Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
find and replace in all files in directory centos
azitello
Programming language:
Shell/Bash
2021-06-28 22:22:45
0
Q:
find and replace in all files in directory centos
Erick Asto Oblitas
Code:
Shell/Bash
2021-03-07 02:13:50
grep -rl 'apples' /dir_to_search_under | xargs sed -i 's/apples/oranges/g'
1
Tags
file
files
replace
find
centos
Related
find number of files in a directory linux
remove all files inside directory linux
linux search file in specific folder
linux remove all files same extension in directory
convert all files and folders in current directory into zip in linux
display all files in a directory linux
list number of files in each folder linux
linux remove folder and all his content
change owner of all the files from a directory linux
New to Communities?
Join the community