using the "newfangled" env method for finding bash, since we have now seen firsthand that /bin/bash is no longer reliable for all the platforms we want to work on (if it ever was)...
-#!/bin/bash
+#!/usr/bin/env bash
 #!/usr/bin/perl
 #!/usr/bin/python
 ##############
 
-#!/bin/bash
+#!/usr/bin/env bash
 PATH="$PATH:/usr/bin/"
 export USER="fred"
 DISPLAY="1"
 
-#!/bin/bash
+#!/usr/bin/env bash
 PATH="$PATH:/usr/bin/"
 export USER="fred"
 DISPLAY="1"
 
-#!/bin/bash
+#!/usr/bin/env bash
 PATH="$PATH:/usr/bin/"
 export USER="fred"
 DISPLAY="1"
 
-#!/bin/bash
+#!/usr/bin/env bash
 PATH="$PATH:/usr/bin/"
 export USER="fred"
 DISPLAY="1"
 
-#!/bin/bash
+#!/usr/bin/env bash
 PATH="$PATH:/usr/bin/"
 export USER="fredhuff"
 # fredhuff is a different user than my normal user who is logged in on
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 cd /opt/azureus
 ./azureus
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # gets rid of any customized resolv.conf file for the local machine and reinstates the standard link for it.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # team_city_startup by Chris Koeritz
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # tracd startup script by Chris Koeritz
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 #PBS -l nodes=1,mem=20m
 #PBS -M my-email@whereiwork.com
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # team_city_startup by Chris Koeritz
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # (c) Copyright by Wolfgang Fuschlberger
 #
 fi
 
 # Create /usr/bin/groups in the jail
-echo "#!/bin/bash" > usr/bin/groups
+echo "#!/usr/bin/env bash" > usr/bin/groups
 echo "id -Gn" >> usr/bin/groups
 chmod 755 usr/bin/groups
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Init Script to run stunnel in daemon mode at boot time.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Runs the trac server startup if it's not already going.
 # This is a lighter-weight solution than adding trac to init scripts,
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this is a simple shell that can be dropped in ~/.kde/Autostart to run a
 # fishtank on the root X window.
 # note: you must enable desktop | behavior | general | allow programs in
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this is a simple shell that can be dropped in ~/.kde/Autostart to show a
 # bunch of roaches on the root X window.
 # note: you must enable desktop | behavior | general | allow programs in
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##############
 #  Name   : fred_techniques
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 #
 # these great examples of handy unix tidbits were donated by "q. black".
 
-#!/bin/bash
+#!/usr/bin/env bash
 ##############
 # Name   : gpg-daemon-launcher
 # Author : Chris Koeritz
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 while true; do
   $0 &
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script modifies the linux kernel for maximum tcp buffer size, which can
 # improve long-haul transfers over a wan.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # prints out the time it takes to run the nechung oracle a thousand times.
 # the number of seconds in the result should be equivalent to the number of
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # finds all the resource ids in resource headers (only those named the
 # canonical resource.h name) and discovers any duplicates.  the duplicates
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # updates a vcxproj that had been converted from prior visual studio 2005
 # to the newer 2010.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this is a simple script that finds the project files listed in a solution file.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script checks all the known solution files to ensure that no project file is
 # listed more than once in the whole set.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script locates any project files that mention the output path setting (OutputPath).  
 # these are extra suspicious due to the problems caused for our solutions when files have the
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script locates the solution that a project file belongs in and decides whether the
 # project file contains any bad references to projects that are outside of its solution.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 DA_DIR="$RUNTIME_PATH/binaries"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 pushd $THIS_FOLDER
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 pushd $THIS_FOLDER
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 pushd $THIS_FOLDER
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 pushd $THIS_FOLDER
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # bails if any step fails.
 function check_result() {
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # some code i wrote to add to revamp that turned out to be unsuitable.
 # but it corrects a problem in cakelampvm v002 release that i find annoying,
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 pushd $THIS_FOLDER/..
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 pushd $THIS_FOLDER/..
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 #hmmm: test this and make sure it's still right.
 #hmmm: also test that it's inclusive of all the necessary steps for success.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [ ! -d $RUNTIME_PATH/install ]; then mkdir $RUNTIME_PATH/install; fi
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Creates the application bundle of core code and support files.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 
 if [ ! -d "$HOME/apps/mapsdemo/avenger5" ]; then
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # these metrics are how bogged down we are in to-do type items.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # backs up a specific single directory by making an archive of it (tar.gz).
 # the storage location for the created archive is also specified.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # backs up a trac repository into a tar.gz file.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # compares this machine's local archives against an exemplar set.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # compares the soapbox with the real archive to see if any older stuff might be
 # left behind.  if it's got a less than in front, then it's only on the soapbox drive
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a script that handles synchronization of important assets from the MAJOR_ARCHIVE_SOURCES
 # and the SOURCECODE_HIERARCHY_LIST onto a backup drive of some sort.  it will only copy folders
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##############
 # Name   : list_arch
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 source "$FEISTY_MEOW_SCRIPTS/archival/comparator.sh"
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 ##############
 # Name   : find_in_arch
 # Author : Chris Koeritz
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # backs up crucial directories on my server into the allotted backup area.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##############
 # Name   : test_arch
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##############
 # Name   : unpack
 
-#!/bin/bash
+#!/usr/bin/env bash
 project_name="$1"; shift
 if [ -z "$project_name" ]; then
   echo This script requires an ms project file name to build.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script adds a sentinel to guard c++ implementation files (*.cpp) from
 # multiple inclusion.  it will only add the guardian markers if the files
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 TOTALS=0
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # locates any #include declarations inside the files provided as parameters.
 # all the includes are turned into their bare file names and sent to standard
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # looks for bad usages in source files.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # looks for include files that have been commented out.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 source "$FEISTY_MEOW_SCRIPTS/buildor/seek_all_source.sh"
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 source "$FEISTY_MEOW_SCRIPTS/buildor/seek_all_source.sh"
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # looks for occurrences of getting a Log from the log factory.  when we find
 # one, we make sure it is using the same class name as the compilation unit.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 for dir in $*; do
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this finds any one-word commented items, which are often a sign of a formal
 # parameter that was commented out because it's unused.  that's a suboptimal
 # way to fix the compiler warning for some people, and so this will find any
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 dir=$1
 if [ -z "$dir" ]; then
   echo this command needs one directory as a parameter.  all the exes in that
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 source "$FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh"
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script traverses the directories passed as its parameters and locates
 # any files that we consider to possibly be source code.
 # a new variable called "SOURCES_FOUND_LIST" will be declared and will point at
 
-#!/bin/bash
+#!/usr/bin/env bash
 # stdbuild: a build script that applies to most unix make based builds
 # for things that you trust enough to install.  this does the configure
 # phase, then makes the project, then installs it.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 file="$1"; shift
 if [ ! -f "$file" ]; then
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # version_utils:
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script takes one microsoft compiler output file and tries to find the
 # mangled C++ function names contained in it.
 file=$1
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 filename="$1"; shift
 function_name="$1"; shift
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this simple script kills off some troublesome processes in preparation for a new build
 # with visual studio.
 zap_process.exe msbuild.exe 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # processes cgi request and passes it on to the real script.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # shows the date on a particular file.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 echo "Content-type: text/plain"
 echo ""
 echo ""
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # checks the rootkit report file to see if anything is listed.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # badness_catcher: runs the command line passed in and catches error conditions.
 
 if [ ! -z "$NOISY" ]; then
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # travels down each subdirectory and cleans using make.
 function clean_subdirectories()
 
-#!/bin/bash
+#!/usr/bin/env bash
 ###############################################################################
 #                                                                             #
 #  Name   : buildor_gen_deps                                                  #
 
-#!/bin/bash
+#!/usr/bin/env bash
 COMPILER=$1
 COMPILER_ROOT_DIR=$2
 if [ "$COMPILER" = "GNU_LINUX" \
 
-#!/bin/bash
+#!/usr/bin/env bash
 # copies the final products of the current project into the repository.
 
 # promote nothing from the built objects if this is a cleanup.
 
-#!/bin/bash
+#!/usr/bin/env bash
 # prepares the project for compilation by creating the appropriate directories.
 
 # make sure our temp directory is there.
 
-#!/bin/bash
+#!/usr/bin/env bash
 if [ -f version.ini ]; then 
   grep "root *=" version.ini | sed -e "s/root *= *//" -e "s/ *$//"
 fi
 
-#!/bin/bash
+#!/usr/bin/env bash
 # clean out temporary files that might make clam think the state is other
 # than a fresh build next time.
 rm -f $FLAG_FILES $SUB_FLAG_FILES
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # travels down each subdirectory and builds using make.
 function make_subdirectories()
 
-#!/bin/bash
+#!/usr/bin/env bash
 ##############
 # Name   : target_runner.sh
 # Author : Chris Koeritz
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 function do_redeveloper()
 {
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 function do_redirt()
 {
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Chris Koeritz
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # snags my two email accounts' mail filters into a nice storage location.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # sets up links to make fallout new vegas work properly under wine.
 # some mods will look for paths that are incorrectly case sensitive, and this
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a helpful script that scrapes any active game saves from wine's storage
 # area into a spooling saves folder for archiving.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # copies the fallout 76 screenshots and images into our walrus metaverse hierarchy.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # windows compatible process killer for any stray processes started as "fallout" something.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # windows compatible process killer for any stray processes started as
 #"fallout" something.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # windows compatible process killer for any stray processes started as
 # "witcher" something.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # grabs a set of archives from a set of machines.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a little helper script for clambook,
 # which is uva's mac and which doesn't share syncthing.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # get the uva codes.
 mkdir -p ~/data/code_depot/uva_codes/
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # backs up the uva onedrive folder (which itself is fed from the cloud).
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 function do_refred()
 {
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 FROOT=$HOME/disco
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # stops the vnc server and restarts it.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # stops the vnc server and restarts it.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # counts up the files in each maildir 'cur' folder to find out how many messages are
 # held in each subdirectory.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 export OUTF=$HOME/email_headers.txt
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # retrieves the system's spam pile from sa-exim's spool folder and
 # moves it to the user's home directory.  sudo access is required
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [ $# -lt 2 ]; then
   echo "This program needs two parameters.  The first is the directory where spam"
 
-#!/bin/bash
+#!/usr/bin/env bash
 if [ $# -lt 1 ]; then
   echo "$(basename $0) usage: the first parameter should be an"
   echo "LDIF file that this script will extract email addresses from."
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # act_on_tree: performs a command on a hierarchy of directories.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # calls a verbose identify on each file passed to it.
 # this should shake loose all the metadata and display it.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # so simple but very handy; drops any partitions that we don't care about before showing the df listing.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # compares the files and directory names in two different top-level directories
 # and prints a report of the differences.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # counts the number of files in a set of directories.
 # if no directories are provided, uses the current working directory.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # finds all files that contain any one of the members of a list of patterns.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 parm=$1
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # an attempt to have a "fast" counter of the number of files in a folder, or folders, which will not stray into any snapshot directories present in the filesystem.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # find last written files, made friendly for dell by avoiding the .clusterConfig directory.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # find the most recently updated files in a folder.
 # made friendlier for dell by avoiding the .clusterConfig directory and for
 
-#!/bin/bash
+#!/usr/bin/env bash
 if test $# = 0; then
   echo $(basename $0): needs at least one directory name as a parameter.
 #hmmm: set the first parm to . instead.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # find the most antiquated files in a folder.
 # made friendlier for dell by avoiding the .clusterConfig directory and for
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # locates read only files in the directories specified.
 # this is a much simpler and more efficient command than some i've seen
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # finds the same file name within a hierarchy, if possible.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # runs the less command but with some additional options.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 #header here!
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 #header here!
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 for i in $(ls -1 | sort ) ; do 
   touch $i
   sleep 2
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [ $# -lt 1 ]; then
   echo $0: requires at least one argument as the file prefix to remove or replace.
 
-#!/bin/bash
+#!/usr/bin/env bash
 #need to support multiple names.
 for i; do
 #old  find "$1" -type d -depth -print -exec perl $FEISTY_MEOW_SCRIPTS/renlower.pl {}/* ';'
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ###############################################################################
 #                                                                             #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 function print_instructions()
 {
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # takes names given to it and replaces any spaces or other gnarly characters with underscores.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # shows the directory passed as the first parameter.
 # if there's a second parameter, it's used for a filtering pattern.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # iterates through the directories or files passed on the command line and does a summary disk usage, but only the
 # things measurable in gigabytes, terabytes, or larger are shown.  the smaller items are just omitted (so anything
 
-#!/bin/bash
+#!/usr/bin/env bash
 if [ -z "$1" ]; then
   echo You must supply a file name to strip out just the links from...
   exit 2
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 function spacem_out()
 {
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # archives the files / directories passed on the command line into an archive
 # file tagged with a datestamp, and removes the original files / directories.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # strips out html tags and sends results to standard input.
 function strip_html_code()
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # whacks the files in the current directory which are duplicates of the
 # files in the directory passed as a parameter.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # whacks the files in the current directory which are NOT duplicates of the
 # files in the directory passed as a parameter.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##############
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # got really tired of seeing this as a big long single line in jenkins, plus
 # it kept breaking and was a huge pain to edit.  so now it's in a much more
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # cleans up the generated files that most people don't use.
 # this includes some static libraries and all of the tests, as well as
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # increments the build version number.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # increments the build version number.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 #hmmm: nice to set an interrupt handler for ctrl-c, to catch a break and send it to the cleanup of the crudfile.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script rebuilds the bookmarks files.  it requires the variables:
 #     WEBBED_SITES: points at the root of the web hierarchy.
 
-#!/bin/bash
+#!/usr/bin/env bash
 sudo gnome-ppp
 
-#!/bin/bash
+#!/usr/bin/env bash
 sudo chmod 666 /dev/ttyACM0
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
 pushd $THIS_FOLDER/modem_driver/*
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # goes through a list of pictures, first showing the picture to you,
 # and then nagging you for each one if you want to delete it or not.
 
-#!/bin/bash
+#!/usr/bin/env bash
 num=1
 while true; do
   import -silent -window root $HOME/bg_image_$num.jpg
 
-#!/bin/bash
+#!/usr/bin/env bash
 hostfile=/etc/HOSTNAME
 if [ ! -f "$hostfile" ]; then
   hostfile=/etc/hostname
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this decides randomly whether to invoke the play_random script or not.
 
 NOISE_IT_UP=$(expr $RANDOM / 91)
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # play the sound files specified.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # the file name to be found on the remote site is expected to be named
 # using the prefix and suffix below.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # main port
 sudo ufw allow 9000
 
-#!/bin/bash
+#!/usr/bin/env bash
 # a simple script that backs up the opensim database assets.
 
 gridusername="$1"; shift
 
-#!/bin/bash
+#!/usr/bin/env bash
 # a simple script that backs up the opensim database assets.
 
 #hmmm: need to parameterize for the database name and secrets file and all that.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # creates a file with the information about land on the
 # simulator.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # we guess at some nice values to use in the list.  if these are too small, we'll
 # adjust them before printing anything.
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this locates the main opensim process if possible.  if we cannot find it,
 # then the process is restarted.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this is a collection of scripts that assist in managing an opensim server.
 # it uses the "screen" utility to manage opensimulator instances.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a handy script for fixing file names imported using second inventory.
 # the names have a hideous long guid as part of them by default.
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script starts up all the opensim processes (0.6.9 era) using the screen
 # utility.  then the processes can all be accessed when desired, rather than
 # needing to be started in 5 or so separate windows.
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script starts up the opensim process for osgrid (0.6.9 era) using the
 # screen utility.  note that this will only be useful for an osgrid-attached
 # sim server.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # an example for windows with the log located under program files.
 #PROGFILES="c:/Program Files"
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script stops a 0.6.9 era opensimulator system that was started by
 # the run_opensim or run_osgrid script.  this will work for either case.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script stops a 0.6.9 era opensimulator system that was started by
 # the run_opensim or run_osgrid script.  this will work for either case.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 main_pid=$( ps wuax | grep "[0-9] mono OpenSim.exe" | grep -vi screen | sed -e "s/$USER  *\([0-9][0-9]*\).*/\1/" )
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # converts ancient microsoft paint files to PNG format using recoil.
 # arose from a question on askubuntu: http://askubuntu.com/questions/881412/how-can-i-convert-really-old-files-in-microsoft-paint-format-msp-to-a-usabl
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # picture shrinker, thanks to dang.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 if test $# -lt 1; then
   echo $(basename $0): requires a user id for which to search.;
   \exit 1;
 
-#!/bin/bash
+#!/usr/bin/env bash
 # finds the current user's processes in the process list.
 snuser=$USER
 # if the unix variable for the user is not set, try the dos variable.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # just prints a message before terminal exit.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # looks for process names for a particular user.  if no user is specified, then this
 # assumes we should look for the current user's processes.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##############
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 if [ -z "$1" ]; then
   echo "Did not find a parameter to seek out and whack from the process list."
   exit 2
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # shows the current processes ordered by cpu usage.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # branchy: lists the branches active on all of the paths provided on the command line.
 # if no directory is specified, this defaults to operating on the current directory.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # checkin: checks in all the folders present in the REPOSITORY_LIST variable.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # compresses the git archive in the folder specified.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # does differences on a set of folders checked out from subversion or git.
 # this can take a directory as parameter, but will default to the current
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # gets any updates for the repository folders present in the REPOSITORY_LIST variable.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
  
 # author: Duane Johnson
 # email: duane.johnson@gmail.com
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # puffer: "puffs out" all of the folders present in the REPOSITORY_LIST
 # variable, which causes the repo to be merged with its remote versions.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script works on a specialized type of git checkout that has been configured
 # to push to a "downstream" repository, while still pulling from its normal origin.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a simple and quick method for making a new release, merging it into the main branch,
 # and tagging it with a new tag for the release.
 
-#!/bin/bash
+#!/usr/bin/env bash
 # checks in the updated files in a set of folders checked out from subversion
 # or git.  this can take a directory as parameter, but will default to the
 # current working directory.  all the directories under the passed directory
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script reports files that are not checked in yet in a set of folders.
 # it works with subversion only, since git handles new files well whereas
 # subversion ignores them until you tell it about them.  this script can take
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # resolves a tree conflict by accepting the "working" version,
 # which effectively makes your current change the accepted one.
 
-#!/bin/bash
+#!/usr/bin/env bash
 # a simple script for updating a set of folders from subversion or git.
 # this can take a directory as parameter, but will default to the current
 # working directory.  all the directories under the passed directory will
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this "puffs out" the repositories that it finds.  what this means is that
 # any git repositories found will have all of their remote state updated (by
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Applies arbitrary commands to any svn status.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # these are helper functions for doing localized revision control.
 # this script should be sourced into other scripts that use it.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # burns a bluray or dvd data disc image onto a physical medium.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # make a dvd data disc image suitable for burning on bluray.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # checker_report: runs the checker utility against all files in a directory,
 # in such a way that the file count can be very high without blowing its
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # makes a playable dvd movie disc image from a folder.
 # the folder has to contain a ripped and decrypted DVD.
 
-#!/bin/bash
+#!/usr/bin/env bash
 # cal: a nicer interface to the unix cal program.
 
 function our_date()
 
-#!/bin/bash
+#!/usr/bin/env bash
 perl $FEISTY_MEOW_SCRIPTS/schedule/generate_reminders.pl
 echo "(bash $FEISTY_MEOW_SCRIPTS/schedule/start_calendar.sh) &>/dev/null" | at 4:20am
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 nmap -O -sS -F -P0 -T Aggressive $1
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a library file for redoing file ownership and permissions as we feel is
 # appropriate.  this approach is a little bit specific to our way of doing
 
-#!/bin/bash
+#!/usr/bin/env bash
 # dos_perm: gives a directory the most open set of permissions
 # available to the dos/windoze attrib command.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # easyperm: traverses directory trees and sets the permissions to a completely
 # accessible value (rwxrwxrwx for directories and rw-rw-rw- for files).
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # exeperm sets the permissions to an executable value, as for a directory of
 # binary files.  (rwxr-xr-x for both directories and files)
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # group_perm: traverses directory trees and sets the permissions to allow the
 # associated group "rw" on files and "rwx" on directories.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # harshperm traverses directory trees and sets the permissions to a restricted
 # value (rwx------ for directories and rw------- for files).
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # tunnels to the khandroma machine for vnc access to the win7 box and for the jenkins
 # server.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # normal_perm: traverses directory trees and sets the permissions to a
 # standard accessibility value.  for fred, this is rwxr-xr-x for directories
 # and rw-r--r-- for files.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a set of useful functions for managing operations with passwords.
 # a set of very simple operations, but the file needs to be protected from
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 host="$1"; shift
 port="$1"; shift
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script manages one ssh tunnel inside a named 'screen' session.
 
 ##############
 
-#!/bin/bash
+#!/usr/bin/env bash
 EXITCODE=0
 
 # this file was downloaded with this command:
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # displays every certificate in a PEM file that has a whole certificate chain.
 # this is surprisingly annoying to get anything to output, so we codified it.
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script connects to a remote machine and records the IP address of the
 # local machine there.  this enables the machine's owner to connect back to
 # the system even if the IP address floats around (changes).
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script makes a tunnel for fred's SMTP traffic.
 
 #hmmm: move this script to fred's custom stuff
 
-#!/bin/bash
+#!/usr/bin/env bash
 # this script makes a tunnel for SMTP traffic and others.  a remote ssh server
 # is required.  this is especially useful for routing around firewalls using
 # a web proxy like squid.  when used for SMTP, it ensures that none of the
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # processes cgi request and passes it on to the real script.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # processes cgi request and passes it on to the real script.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # processes cgi request and passes it on to the real script.
 
 show_name="$(echo $QUERY_STRING | sed -e "s/^[^=][^=]*=\(.*\)$/\1/" | sed -e "s/\+/ /g")"
 
-#!/bin/bash
+#!/usr/bin/env bash
 if [ -z "$1" -o -z "$2" ]; then
   echo You must supply a file name that has a movie database in it and a movie
   echo or show name to search for.  Example:
 
-#!/bin/bash
+#!/usr/bin/env bash
 if [ -z "$1" ]; then
   echo You must supply a file name to strip out the unique movie or show
   echo names from...
 
-#!/bin/bash
+#!/usr/bin/env bash
 if [ -z "$1" -o -z "$2" ]; then
   echo "This program accepts a file name with CSV formatted movie database"
   echo "information and extracts a particular show's episodes.  You need to"
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # run a command on all of the existing apps folders, but only if they appear to have site avenger projects in them.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Kevin Wentworth
 # Author: Chris Koeritz
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # provides the default values for the variables used in our site management scripts.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # override for ecocor6 to set the theme.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a special override for the mapsdemo site, which we want to put in as
 # a subdomain of the cakelampvm domain.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Kevin Wentworth
 # Author: Chris Koeritz
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # fixes the cakelampvm permissions according to the way.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # fixes the cakelampvm permissions according to the way.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Kevin Wentworth
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Chris Koeritz
 # Author: Kevin Wentworth
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Kevin Wentworth
 # Author: Chris Koeritz
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Kevin Wentworth
 # Author: Chris Koeritz
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Chris Koeritz
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this performs the inverse operation of standup, by relying on the
 # remove_domain and remove_apache_site scripts.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # creates a new apache website for a specified domain.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this set of functions serve the main purpose of adding new domains or
 # subdomains to the bind9 DNS server on the current host.  it is currently
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # auto-find the scripts, since we might want to run this as sudo.
 export THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"  # obtain the script's working directory.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # just tests whether a linux box can handle 64-bit operating systems.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 # check_mount: tests a mount point to see if it is already mounted, and if
 # it is not, mounts it.
 if [ -z "$1" ]; then
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this is a library of functions shared by scripts in the system folder.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # queries the cpu temperature using the sensors system (must be installed) and writes the
 # results to an ongoing log file as well as standard output.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # dumps out the log files according to the provided pattern, but makes sure that
 # each one is dumped in chronological order, and any compressed logs are unpacked
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # note that this will only work on the machine with the dhcp server, and
 # it only works with our range for unassigned, unknown machines, which is
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # returns an error value if reboot IS required due to some recent
 # updates.  otherwise returns a normal zero exit value indicating
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 bash $FEISTY_MEOW_SCRIPTS/system/list_packages.sh linux-image |grep "^rc" | grep -v extra | awk '{print $2 }'
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # updates the moodle install, assuming all paths are at the default.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # keeps trying to mount the cd on a mac mini to overcome
 # a new bug in itunes seen as of osx leopard upgrade.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ###############################################################################
 #                                                                             #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # uninstalls the apache website for a specified domain.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # performs the inverse function of add_domain by deconfiguring a domain
 # in bind.  the domain needs to have been set up by add_domain, or this will
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # reports whether a disk is spinning physical media or solid state.
 # if no drive is specified, then /dev/sda is the default.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # screeno: a simple alias for putting something in the background where its logs can be
 # tended by the screen utility.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # shows fdisk report for "real" devices.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 sourcedir="$1"; shift
 targetdir="$1"; shift
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # some helpful functions for counting a named duration.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # a simple time update script that traps output from rdate, since we
 # get a lot of noise even when a successful update occurs, to whit:
 
-#!/bin/bash
+#!/usr/bin/env bash
 # writes an uptime report to a file in the home directory which is named
 # after the current machine's hostname.
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # sample the first argument to make sure it's not empty.
 # we can't know if the command is really valid or not, but it at least
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # a simple unit test component that takes three parameters: the test to run, the
 # input file to give that test, and the expected correct output file from the test.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # redirects standard out and standard error output to temp files and runs all
 # the parameters to this script as a command.
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # tests the array sifter methods.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##############
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # tests out the time tracking methods.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 file="$1"; shift
 if [ -z "$file" -o ! -f "$file" ]; then
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script takes two CSV files and ensures that they have the same
 # contents, regardless of the order.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 ############################################################################
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 folder="$1"; shift
 pat1="$1"; shift
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 echo "<br>"
 echo "<br>"
 echo "--<br>"
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script looks for any files containing offensive language, but one must
 # fill out the list of inappropriate language to censor.  this list is stored
 
-#!/bin/bash
+#!/usr/bin/env bash
 ############################################################################
 # This function parses a line from a CSV file (you pass the line as the 
 # argument) into elements in an array.  The CSV elements must be enclosed
 
-#!/bin/bash
+#!/usr/bin/env bash
 seek="$1"; shift
 if [ -z "$seek" ]; then
   echo This script needs a pattern to look for in the current directory.
 
-#!/bin/bash
+#!/usr/bin/env bash
 #list schmoover?
 #smoove_lists source target
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this shell file locates a terminal of the user whose
 # login id is specified as the first parameter.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This program is meant to be started by the program keep_awake and has
 # the guts that are meant to execute inside of a semi-perpetual loop.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Can be used to lock up a terminal screen until the user enters the correct
 # password.  Pretty sturdy.  Store your password in the file "PASSWORD_FILE",
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
 source "$FEISTY_MEOW_SCRIPTS/core/common.alias"
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # fixes the links that wine makes to our home folder under linux.  that's a really bad
 # practice that exposes all one's private files to the wine subsystem.  dumb.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # makes a new copy of the testkit reference with branding info installed.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Test: Blank
 # Author: Fill ItIn
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Supports the TestKit with a few handy functions and many variables.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 #hmmm: NOT ported to testkit yet.
 
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 privkey="$1"; shift
 subject="$1"; shift
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # useful functions that are somewhat general.  these are not needed for
 # the basic setup of the test environment, but they are used by other
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Processes the XSEDE tools config file to turn variables listed in the
 # file into exported variables in the environment.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Creates an archive from the test scripts.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # an unfinished idea for how to manage identifiers that are randomly
 # generated but are also uniquely identified for later use.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # assorted useful ways of running executables.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Tears down the demo users previously set up for multi-user testing.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Author: Chris Koeritz
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # An example of using shunit2.
 #
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This script runs through all the known tests by performing a test sweep.
 # It should claim that all tests succeeded for a new build/configuration/etc.
 
-#!/bin/bash
+#!/usr/bin/env bash
 
 # this script modifies the linux kernel for maximum tcp buffer size, which can
 # improve long-haul transfers over a wan.