Commit 42512400 authored by mouhamad.orabi's avatar mouhamad.orabi

add ex1 to Replace one word with another word within all files in a folder and its subfolders

parent 592b2831
#!/bin/bash
oldword=$1
newword=$2
suffix=$3
find -name "*.$suffix" -exec sed -i "s/$oldword/$newword/g" {} \;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment