Posted By

nkm on 03/29/11


Shell script attributes macosx remove terminal bulk mass leopard extended

Versions (?)

Removing all extended attributes from a directory tree

 / Published in: Bash


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.