Guest User

Untitled

a guest
Jul 26th, 2020
22
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data