The Python Oracle

How to implement common bash idioms in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC H Dvoks String Quartet No 12 Ame

--

Chapters
00:00 Question
00:30 Accepted answer (Score 144)
03:52 Answer 2 (Score 103)
04:37 Answer 3 (Score 57)
05:41 Answer 4 (Score 44)
07:22 Thank you

--

Full question
https://stackoverflow.com/questions/2094...

Accepted answer links:
[subprocess]: https://docs.python.org/3/library/subpro...
[shutil]: https://docs.python.org/3/library/shutil...
[os]: https://docs.python.org/3/library/os.htm...

Answer 2 links:
[Plumbum]: http://plumbum.readthedocs.org/en/latest/
[Sarge]: https://bitbucket.org/vinay.sajip/sarge/
[sh]: http://amoffat.github.com/sh/
[pyp]: http://pyvideo.org/video/686/the-pyed-pi...

Answer 3 links:
[system shell commands]: https://ipython.readthedocs.io/en/stable...
[as a system shell]: https://ipython.readthedocs.io/en/stable...

Answer 4 links:
http://xon.sh/
[https://github.com/scopatz/xonsh]: https://github.com/scopatz/xonsh/
[demonstration video]: http://xon.sh/_static/xonsh-demo.webm

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #bash #shell

#avk47