I want to be able to run a find command in my bash script that will find files based on two seperate variables. I've gotten this far but I'm not sure how to get the final result working
find . -user $userid -name $filename
cat $uidscript 10017:title 10001:options.php 10005:dump.php(235)
So on so forth, the variable contains the username and the file owned by the username.
I think I need to seperate the userid and the filename into two seperate lists.
userid=$(cat $uidscript|cut -c1 -d':') filename=$(cat $uidscript|cut -c2 -d':')`
From here I'm not sure how to organise the find command into a for loop. I would think it would go something like this..
for i in $userid, $filename; do find . -user $userid -name $filename; done
Could someone give me a push in the right direction?