Skip to main content
Question

Using findfile to find multiple files?


Forum|alt.badge.img+3

Hi All,

I am using this bash script to find, and report on a file i need found on my managed computers.

!/bin/sh

findFile="Illegal.mp4"
myFile=mdfind $findFile
if [[ -n $myFile ]]; then echo "<result>FOUND</result>" exit 99
fi
exit 0

I found it in this thread
https://www.jamf.com/jamf-nation/discussions/8639/best-way-to-find-a-file-on-managed-computers

My question is can I put multiple file names into this or is there abetter way to go about this? I need to find if around 20sih JPGs are on local machines here.

Thanks
Nick

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings