Commit 9aecd825 authored by hadi.atteh's avatar hadi.atteh

added first question solution

parents
#!/bin/bash
oldword=$1
newword=$2
extension=$3
files=$(find . -type f -name "*.$extension")
for file in $files; do
sed -i "s/$oldword/$newword/g" "$file"
done
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