Skip to content

Instantly share code, notes, and snippets.

@avidal
Created November 4, 2010 16:35
Show Gist options
  • Save avidal/662746 to your computer and use it in GitHub Desktop.
Save avidal/662746 to your computer and use it in GitHub Desktop.
wc = subprocess.Popen(['wc', '-l', 'animes.txt'], stdout=subprocess.PIPE)
res = wc.communicate()[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment