×
"LinesToSingleLine.sh" is a simple Bourne shell script that takes input from stdin, strips all the line-feed and carriage-return, and outputs the data on a ...
DirectoryHasFile.sh is a Bourne Shell script that helps your custom shell scripts determine whether the specified directory contains any files. This script ...
Multi-Line IF Statements in Batch File. Most folks don't realize it, but you can actually place multiple statements into if-else clauses.
IsOdd.sh determines whether the number you specify on the command-line is an odd number. If so, it outputs an '1', otherwise it outputs a '0'. IsOdd.
"DriveLabel.bat" is a batch file that returns the label given a drive letter. "DriveLetter.bat" takes advantage of the following batch files, which are also ...
"IsScriptRunning.sh" is a Bourne shell script that helps you determine whether another script is already running. If it finds the script you specified on the ...
"RunAsAdministrator.cmd" is Windows batch program that elevates a script or program to admin level. This script does the same thing as you right-clicking on a ...
This "basename.bat" is a Windows batch program that performs the same function as as the UNIX "basename" command. And that function is to strip the parent ...
ContainsRegEx.cmd is a Windows batch program that can help determine if a specified string contains a specified regular expression. ContainsRegEx.cmd outputs 1 ...
A few days ago, I came across TakeControlOf.zip, which contained a very small TakeControlOf.cmd batch file. There were only two lines in this simple batch file ...