Piping external commands

saibotorama at gmail.com saibotorama at gmail.com
Mon Jul 17 20:46:08 EDT 2006


What is the Python translation for this Bash statement:

  tar cf - "${files[@]}" | bzip2 > "$file".tar.bz2

(Ignoring the fact that "tar cjf" also exists...)

In other words, how does one pipe together arbitrary commands?



More information about the Python-list mailing list