Skip to content

Instantly share code, notes, and snippets.

@mcunha98
Created May 16, 2023 13:42
Show Gist options
  • Save mcunha98/98143feb1e5fd6b8d4e2b0630db9d9fe to your computer and use it in GitHub Desktop.
Save mcunha98/98143feb1e5fd6b8d4e2b0630db9d9fe to your computer and use it in GitHub Desktop.
grep -rl $'\xEF\xBB\xBF' /srv/httpd/suapasta > /tmp/files_with_boms.txt
while read l; do sed -i '1 s/^\xef\xbb\xbf//' $l; done < /tmp/files_with_boms.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment