Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from subprocess import call
- call('''
- find -type f -exec bash -c ' \
- for f; do \
- file=$(file -- "$f") \
- if [[ $file =~ ^$f:\ "ASCII text" ]]; then \
- echo rm -- "$f" \
- fi \
- done \
- ' bash {} +
- ''', shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement