Hi everyone, just to declare i am a total newbie to MacOS scripting, however, i trying to deploy a script to a few MacBooks to search for a file based on the data in the file and then delete the file, and possibly log the result. The script am trying to use is below but am not having much luck with it even if I run it from the terminal on my test Mac., any suggestion is appreciated
Script:
grep "url,username,password,totp,extra,name,grouping,fav" / -rl 2>/dev/null | xargs -I {} rm -v {}
Script:
grep "url,username,password,totp,extra,name,grouping,fav" / -rl 2>/dev/null | xargs -I {} rm -v {}