Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PIPIPIG233666/6b4bf1ee4817a9e9c3279aaf0c1aa7e0 to your computer and use it in GitHub Desktop.
Save PIPIPIG233666/6b4bf1ee4817a9e9c3279aaf0c1aa7e0 to your computer and use it in GitHub Desktop.
script to remove OEM Copyright
string="Copyright (C) $1 XiaoMi, Inc."
while IFS= read -r file; do
sed -i "/$string/d" "$file" || continue;
done < <(grep -R "$string" . | cut -d ':' -f 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment