Global recursive search-replace templates

Random questions or observations about and around computers
Post Reply
User avatar
Vincent
Posts: 3077
Joined: Fri Apr 07, 2006 12:10 pm
Location: Schtroumpf
Contact:

Global recursive search-replace templates

Post by Vincent » Sun May 04, 2014 4:23 pm

Code: Select all

grep -rl "semi-decide" . | xargs sed -i 's/semi-decide/positively approximate/g'

find ./ -type f | xargs sed -i 's/string1/string2/g'
{ Vincent Hugot }

Post Reply

Who is online

Users browsing this forum: No registered users and 282 guests