theG

The best way to become acquainted with a subject is to write a book about it………..wp

Menu

Skip to content
  • Home
  • About
  • Article
  • cPanel commandline
  • cPanel Migration
  • Exim & Spamming
  • GlusterFS
  • High availability
  • Linux
  • MySQL
  • MySQL Master-Master replication
  • MySql Replication Errors
  • Scripts
  • Temp
  • WordPress

Tag Archives: find

Bash : Find and replace text in files recursively

September 27, 2013 by gopukrish

0

If you want to replace the text ‘linux’ with ‘ubuntu’ recursively inside a particular directory, Use the below command :

 

find . -type f -print0 | xargs -0 sed -i ‘s/linux/ubuntu/g’

 

Enjoy 🙂

Posted in cPanel, Linux, mysql, Security, Server Administration, Ubuntu, Web Hosting. Tagged bash, file, find, recursively, replace

Post navigation

January 2021
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Mar    
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy