Return to Snippet

Revision: 43662
at March 29, 2011 06:45 by nkm


Initial Code
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

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

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

Initial Title
Removing all extended attributes from a directory tree

Initial Tags
script, terminal

Initial Language
Bash