Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. origGroupsStr=$(groups $3)
  2. newGroupsStr=${origGroupsStr##$3 :}
  3. echo "All groups for "$3" : "$newGroupsStr"\nFiles which was modificate in last "$2" minutes and containings in "$1" and has owner one of this groups : "
  4. for group in $newGroupsStr
  5. do
  6.   for filename in $(find $1 -type f -mmin -$2 -group $group)
  7.   do
  8.     echo "filename : "$filename" group owner : "$group
  9.   done
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement