Skip to content

Category Archives: Scripting

Scripting hints, tips, and reminders.

Spawning sub-shells

Creating sub-shells in bash is simple: just put the commands to be run in the sub-shell inside parentheses. This causes bash to start the commands as a separate process. This group of commands essentially acts like a separate script file, their input/output can be collectively redirected and/or they can be executed in the background by [...]

Remembering the shells special variables…

I can never seem to remember what all of these default parameter variables are. I found this small shell script that prints them out when I forget. #!/bin/sh -vx ####################################################### # example_1.1 (c) R.H.Reepe 1996 March 28 Version 1.0 # ####################################################### echo “Script name is [$0]” echo “First Parameter is [$1]” echo “Second Parameter is [...]

Contact Us SEO Powered by Platinum SEO from Techblissonline