Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > How to strip Leopard Extended Attributes from files

How to strip Leopard Extended Attributes from files
Thread Tools
DominikHoffmann
Mac Enthusiast
Join Date: Feb 2001
Location: Leesburg, Virginia
Status: Offline
Reply With Quote
Jun 6, 2008, 04:05 PM
 
After restoring my home folder from a Time Machine backup, which resided on a Mac OS X Server box in the form of a sparsebundle, there are now various problems with the operations of several applications.

I have a hunch that this might be because of the Extended Attributes I copied over incorrectly. How can I remove all extended attributes from my entire home folder? Is there any reason not to do this? I understand that Time Machine and Spotlight both use these, but I wouldn't mind starting from scratch with both.

On the BrT blog I found a piece of code that purports to do what I need, but, alas, it isn't working in my situation:

Code:
for i in $(ls -Rl@ | grep '^ ' | awk '{print $1}' | sort -u); \ do echo echo Removing $i ... >&2; \ find . | xargs xattr -d $i 2>/dev/null ; done
where the spaces after the caret ("^") are generated by Ctrl-V, followed by TAB.

Do any of you know of an alternative?
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jun 6, 2008, 07:30 PM
 
What is the output of that command? It looks like the general approach should work...
     
DominikHoffmann  (op)
Mac Enthusiast
Join Date: Feb 2001
Location: Leesburg, Virginia
Status: Offline
Reply With Quote
Jun 9, 2008, 11:09 AM
 
Over at the BrT blog a thread, which led me to this solution:

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
Here again the spaces after the caret ("^") are generated by Ctrl-V, followed by TAB.

Thanks to all who showed interest!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:17 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,