Commit f2f9b24b authored by mhammad's avatar mhammad

Q2

parent 3e43140c
ahmad
mohammad
essa
ahmad
#!/bin/bash
# تحديد الكلمات القديمة والجديدة
oldword=$1
newword=$2
# البحث والاستبدال في الملفات التي تنتهي بلاحقة txt
find . -type f -name "*.txt" -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