Posted By

nkm on 03/29/11


Tagged

Shell script attributes macosx remove terminal bulk mass leopard extended


Versions (?)

Removing all extended attributes from a directory tree


 / Published in: Bash
 

URL: http://zzamboni.org/brt/2008/05/07/removing-all-extended-attributes-from-a-directory-tree/

The space after the caret in the grep command is produced by typing Ctrl-V and then Tab, to insert a Tab character.

  1. for i in $(ls -Rl@ | grep '^ ' | awk '{print $1}' | sort -u); do echo echo Removing $i ... >&2; find . -print0 | xargs -0t xattr -d $i 2>/dev/null ; done

Report this snippet  

You need to login to post a comment.