Answer by Daniel Beck for Run python oneliner in bash script
There is no need for escaping or moving the argument to its own variable.But, keeping it mostly the same, the following works for me:#!/usr/bin/env...
View ArticleRun python oneliner in bash script
The following is the python one-liner I want to run as part of my bash scriptpython -c "from xml.dom.minidom import parse;dom = parse('/path/to/pom.xml');print [n.firstChild.data for n in...
View Article
More Pages to Explore .....