Skip to content

Instantly share code, notes, and snippets.

@techedlaksh
Last active April 18, 2023 14:59
Show Gist options
  • Save techedlaksh/2e07181dc09842a060f6806815b4b31a to your computer and use it in GitHub Desktop.
Save techedlaksh/2e07181dc09842a060f6806815b4b31a to your computer and use it in GitHub Desktop.
shell script to remove file attribute in macos, "file can not be changed because it is in use" error
find . -maxdepth 1 -type f \( -name "*.MOV" -or -name "*.mov" \) -exec echo {} \; -exec xattr -d com.apple.FinderInfo {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment