Posts Tagged ‘BASH pass argument to command’

BASH Shell Scripting: Passing Arguments to a Python Script

Monday, September 1st, 2014

Larry Wall: “Shell programming is a 1950s juke box …”

In this short blog I write a small Python utility script to create directories and demonstrate how to utilize it and pass it arguments via BASH shell script. The functionality is similar to the ‘mkdir’ UNIX command. The name of the directory or directories to be created is the argument I pass in to the Python script. I then create a BASH shell script to call the Python script. (more…)

Twitt