Upload files to "OS/bash/Week3"

This commit is contained in:
Aadit Agrawal 2025-01-17 10:49:57 +05:30
parent e27e2c7837
commit a815332403
5 changed files with 56 additions and 0 deletions

9
OS/bash/Week3/q6.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/bash
for file in *;do
if [ -f "$file" ];then
sed -i -E 's/(^|\.)ex:/\1Exammple:/g' "$file"
fi
done
echo "File modified"