Posts Tagged ‘BASH’

Customize the Mac Terminal Shell Prompt in OS X Yosemite

Monday, November 3rd, 2014

The Mac prompt is defined by the ‘PS1′ environment variable which can be defined in the ‘.bash_profile’ hidden file. To customize your Mac Terminal Shell Prompt in OS X Yosemite, follow the below steps. (more…)

Twitt

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