Suppose I want to go through each file (recursively too), and replace everything with:
{{ MEDIA_URL }}
with:
{% media_url %}/
What command can I run in Linux to replace the former with the latter, in all my files, recursively?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How about a sed solution…
Updated: added /g as per a commenter suggested
Updated: somehow unicode chars got copied in there