Advertisement
Guest User

Untitled

a guest
Jul 26th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. from subprocess import call
  2. call('''
  3. find -type f -exec bash -c ' \
  4.  for f; do \
  5.    file=$(file -- "$f") \
  6.    if [[ $file =~ ^$f:\ "ASCII text" ]]; then \
  7.      echo rm -- "$f" \
  8.    fi \
  9.  done \
  10. ' bash {} +
  11. ''', shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement