Skip to content

Instantly share code, notes, and snippets.

@vbajpai
Created July 16, 2012 15:54
Show Gist options
  • Save vbajpai/3123475 to your computer and use it in GitHub Desktop.
Save vbajpai/3123475 to your computer and use it in GitHub Desktop.
Create Compressed Flow-Tools Traces from a List of Uncompressed Ones.
>> export FTEXT='.ft'
>> python -c "import os; list = os.listdir(os.getcwd()); \
print [os.system('echo converting: %s && flow-cat %s -z 9 > %sz'%(file, file,file)) \
for file in list if os.path.splitext(file)[1] == os.environ['FTEXT']]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment