Files
School/Anul 1/Semestrul 2/OS/Labs/shell-programming/problem6.sh
T
2024-08-31 12:07:21 +03:00

11 lines
231 B
Bash

#!/bin/bash
for file in `find dir -type f`;do
x=`ls -l $file | grep -E "^-.......w." | awk -F" " '{print $1 " " $9}'`
if test "$x"!="";then
echo $x
chmod o-w "$file"
ls -l $file | awk -F" " '{print $1 " " $9}'
fi
done