/ 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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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
URL: http://zzamboni.org/brt/2008/05/07/removing-all-extended-attributes-from-a-directory-tree/