MIT-Curricular/OS/bash/Week3/q6.sh
2025-01-17 10:49:57 +05:30

9 lines
129 B
Bash

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