- B
- A
- C
- A
- (Nie widać za dobrze, ale zakładam że kursor jest na literce "z", czwarta linijka od dołu)
<Escape>d4d4kP
if [ $# -lt 2 ]; then
echo "Za mało parametrow"
exit
fi
if [ -d $2 ]; then
find $2 -size $1c -exec ls -l {} \;
else
echo "$2 nie jest katalogiem"
fi
if [ $# -lt 2 ]; then
echo "Za mało parametrow"
exit
fi
username=$(grep "^.*:\*:$1:" /etc/passwd | cut -d: -f1)
home=$(grep "^$username:" /etc/passwd | cut -d: -f6)
echo "Logname: $username"
find $home -size -$2c -exec ls -rS {} +
if [ $# -lt 2 ]; then
echo "Za mało parametrow"
exit
fi
if [ -d $2 ]; then
case $1 in
-r)
find $2 -perm -u+r
;;
-w)
find $2 -perm -u+w
;;
-x)
find $2 -perm -u+x
;;
*)
echo "Zly przelacznik"
;;
esac
else
echo "$2 to nie katalog"
fi
if [ $# -lt 2 ]; then
echo "Za mało parametrow"
exit
fi
home=$(grep "^$1:" /etc/passwd | cut -d: -f6)
find $home -mtime $2 -exec ls -S {} +