Skip to content

Instantly share code, notes, and snippets.

@bwesterb
Created October 27, 2014 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwesterb/11de2023b804c6812452 to your computer and use it in GitHub Desktop.
Save bwesterb/11de2023b804c6812452 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os
import os.path
import subprocess
for fn in os.listdir('.'):
if not os.path.isfile(fn):
continue
if not fn.endswith('.fif'):
continue
if fn.endswith('_sss.fif'):
continue
if fn.endswith('_mc.fif'):
continue
subprocess.call(['ls', '-l', fn])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment