Skip to content

Instantly share code, notes, and snippets.

@em230418
Created July 19, 2019 07:05
Show Gist options
  • Save em230418/c00e44b37c35dd1e0fcacbce9e24c534 to your computer and use it in GitHub Desktop.
Save em230418/c00e44b37c35dd1e0fcacbce9e24c534 to your computer and use it in GitHub Desktop.
Убрать # -*- coding: utf-8 -*- во всех файлах из текущего каталога
#!/usr/bin/env bash
sed -i '/#\ -\*-\ coding: utf-8\ -\*-/d' `grep -rn . -e "coding: utf-8" -l`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment