Upload files to "OS/bash/Week3"
This commit is contained in:
parent
e27e2c7837
commit
a815332403
5 changed files with 56 additions and 0 deletions
9
OS/bash/Week3/q6.sh
Normal file
9
OS/bash/Week3/q6.sh
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue