Instantly share code, notes, and snippets.

What would you like to do?
IPython snippet for iterating over hva files in multiple directories on one level which uses shells command and cd single line magic
for directory in dirs:
%cd {directory}
hva_files = !ls *.hva
for hva_file in hva_files:
!decode_hva.exe -f csv -o {hva_file[:-4]}%s.csv {hva_file}
%cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment