Hi,
I need either a one liner or a bash script to recursively search a folder/sub folders for binary files (windows .lnk files) containing a specific text string. If it finds a match it must delete the file.
After googling for a number of hours I've come accross the below one liner.
Why does it not work?
Code:find . -name '*.lnk' -print0 | xargs -0 grep -I "C:" | xargs -0 rm -f
Bookmarks