Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Remove quarantine attribute in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove quarantine attribute in Terminal
Authored by: mael on Nov 30, '09 12:03:59PM

This has proven robust for me:

find -x <insert_directory_this_should_work_on_here> -type f -print 0 | xargs -0 xattr * | grep "quarantine" | awk -F: '{print $1}' | xargs -I {} xattr -d com.apple.quarantine '{}'


it looks daunting, but is in fact trivial:

find: find all files in the current file system (don't bother external disks or usb sticks by default)

xargs v1: show the attributes of the found files

grep: filter all those with a qarantine attribute

awk; get the filename

xargs v2: strip the attribute



[ Reply to This | # ]
Remove quarantine attribute in Terminal
Authored by: mael on Dec 19, '09 09:03:06AM

There is a typo above: not '-print 0' but '-print0'

The whole string:
find -x <DIR_TO_WORK_ON> -type f -print0 | xargs -0 xattr * | grep "quarantine" | awk -F: '{print $1}' | xargs -I {} xattr -d com.apple.quarantine '{}'



[ Reply to This | # ]