HOME

Example Software Scripts:

Introduction

Add something here ...

Add something here ...

Add something here ...

Software Directory

Layout map

Layout2
Scripts  Bytecode  Native  Other


Shell Scripts

Programming scripts are files containing a sequence of instructions written in a programming language that are executed by an interpreter or a scripting engine. Unlike compiled programs, which are translated into machine code before execution, scripts are typically executed directly by an interpreter at runtime. Scripts are often used to automate tasks, manipulate data, or control software applications.

These scripts are usually written in higher-level, human-readable languages such as Python, JavaScript, or Bash. They can be short and focused on specific tasks, like automating system administration tasks or web page behavior, and are often used for rapid development due to their ease of writing and flexibility. Scripts can be run in environments like command-line interfaces, web browsers, or within other applications.Programming scripts are files containing a sequence of instructions written in a programming language that are executed by an interpreter or a scripting engine. Unlike compiled programs, which are translated into machine code before execution, scripts are typically executed directly by an interpreter at runtime. Scripts are often used to automate tasks, manipulate data, or control software applications.

These scripts are usually written in higher-level, human-readable languages such as Python, JavaScript, or Bash. They can be short and focused on specific tasks, like automating system administration tasks or web page behavior, and are often used for rapid development due to their ease of writing and flexibility. Scripts can be run in environments like command-line interfaces, web browsers, or within other applications.

Bash Scripts

A Bash script is a file containing a series of commands written for the Bash shell, which is a command-line interpreter commonly used on Linux and macOS systems. Bash (short for "Bourne Again Shell") is a command-line interface that allows users to interact with the operating system by typing commands.

Bash scripts automate repetitive tasks, manage system configurations, or perform complex sequences of operations. They are often used for tasks like file management, process automation, system maintenance, and running programs in a specified order.

A Bash script typically starts with a shebang (`#!/bin/bash`), which tells the system to use the Bash shell to interpret the file. After that, it includes a series of commands, often combined with variables, loops, conditional statements, and functions to carry out the desired tasks.

Table 1
Script Name: Author: Requires: Purpose:
make_snapshot.sh David B. — (E-mail) bash, rsync and mailx Script to automate the use of rsync to archive home directory
daily_snapshot_rotate.sh David B. — (E-mail) bash, rsync and mailx Script to automate the rotation of achive home directories
verify_disc_backup.sh David B. — (E-mail) bash and md5sum Script to calulate md5sum totals of tar files in backup directories
chat David B.— (email) bash and epic description
set-title.sh David Billsbrough — (Email) bash Reset the title of putty title window
watch-url3 David Billsbrough — (Email) awk, bash, mailx, touch and urlwatch Check status of new and changed web sites
watch-url4 David Billsbrough — (Email) bash, mailx, sed and urlwatch Check status of new and changed web sites


Korn Shell Scripts

Add something here ...

Table 2 : Korn shell
Script Name: Author: Requires: Purpose:
daystogo.sh David B. — (E-mail) ksh Clean-up old tar files for backups.
(blank) David B. — (E-mail) ksh .
(blank) David B. — (E-mail) ksh .


Bytecode Compilers

Byte-code compilers are tools that translate high-level programming languages (like Java or Python) into an intermediate form known as byte-code. Unlike machine code, which is specific to a particular computer's architecture, byte-code is designed to be executed by a virtual machine (VM). This allows programs to be portable across different systems. The byte-code compiler generates this intermediate code, which is then interpreted or further compiled into native machine code by the VM at runtime. This process enables a balance between portability and performance, making byte-code a key feature of languages that prioritize cross-platform compatibility.

Lua source code

Add something here ...

Table 2 : Lua programs — ...
Script Name: Author: Requires: Purpose:
Days To Go calculator David B. — (E-mail) Lua .
daystogo.lua David B. — (E-mail) Lua 5.3 Days to go calculator
shellsort.lua David B. — (E-mail) Lua 5.3 Example of a shell sort of integers
(blank) David B. — (E-mail) Lua .
(blank) David B. — (E-mail) Lua .


Perl source code

Add something here ...

Table 3
Script Name: Author: Requires: Purpose:
daystogo.pl David B. — (E-mail) Perl 5 .
solution 4.17.pl David B. — (E-mail) Perl 5 .
shellsort.pl David B. — (E-mail) Perl 5 .
daystogo.pl David B. — (E-mail) Perl 5 Days to go calculator


Python source code

Add something here ...

Table 4B
Script Name: Author: Requires: Purpose:
(blank) David B. — (E-mail) Python 3 .
(blank) David B. — (E-mail) Python 3 .
(blank) David B. — (E-mail) Python3 .


Ruby source code

Add something here ...

Table 4C
Script Name: Author: Requires: Purpose:
(blank) David B. — (E-mail) Ruby .


Tcl/Tk & Wish source code

Table 4
Script Name: Author: Requires: Purpose:
Welcome David Billsbrough — (Email) tclsh ??? (coming real soon)
Welcome David Billsbrough — (Email) tclsh ??? (coming real soon)
Welcome David Billsbrough — (Email) tclsh ??? (coming real soon)


Zsh shell scripts

Zsh (Z shell) is a powerful and flexible Unix shell that can be used as an interactive login shell and as a scripting language. It is often praised for its features, including advanced tab completion, programmable command-line editing, support for a wide variety of customization options, and powerful scripting capabilities. Zsh combines features from other shells like Bash, tcsh, and ksh but offers more flexibility and features.

Table 4
Script Name: Author: Requires: Purpose:
Welcome David Billsbrough — (Email) Zsh ??? (coming real soon)
degree_conversion.sh David B. — (E-mail) bc, calc and zsh Convert F to C degrees.
Celsius_conversion.sh David B. — (E-mail) bc, calc and zsh Convert C to F degrees.
Welcome David Billsbrough — (Email) Zsh ??? (coming real soon)
Welcome David Billsbrough — (Email) Zsh ??? (coming real soon)


Native Compilers

Ada Programs

Add something here ...

Table 1
Script Name: Author: Requires: Purpose:
Hello World in Gnat — GNU ADA compiler David B. — (E-mail) Ada Greetings program in Ada.
(blank) David B. — (E-mail) Ada .
(blank) David B. — (E-mail) Ada .



BASIC Programs

Add something here ...

Table 2 : FreeBASIC — (ELF)
Script Name: Author: Requires: Purpose:
A sample HELLO.BAS David B. — (E-mail) FreeBASIC A sample program to test out the FreeBASIC compiler.
(blank) David B. — (E-mail) FreeBASIC .
(blank) David B. — (E-mail) FreeBASIC .



ANSI 'C' & C++ (version 11) source code

Add something here ...

Table 3 - ANSI 'C' language
Script Name: Author: Requires: Purpose:
bubble3.c David B. — (Email) gcc or clang language and a data file Sample program to demo Bubble Sort
bubble4.cpp David B. — (Email) ANSI C++ language Bubble sort demo in 'C++' language
Temperture Conversion (FC and CF) David B. — (Email) simple program to convert Celsius/Fahrenheit degrees C language - ANSI
sinewave.c David B. — (Email) A demo 'C' program ported from BASIC and David Ahl 101 games C language
generate-pw.c Carl S. Gutekunst — (Email) simple 'C' program to generate a random password C language - POSIX
call_subprocess.c David B. — (Email) simple program to send test data to a couple of windows using Ncurses C language using ncurses - POSIX



Kotlin Programs

Add something here ...

Table 4 - bytecode compiler — (Java) JRE
Script Name: Author: Requires: Purpose:
Reverse game David B. — (E-mail) Kotlin Port of the game 'Reverse' from 100 BASIC Games.
(blank) David B. — (E-mail) Kotlin .
(blank) David B. — (E-mail) Kotlin .



Pascal Programs

Add something here ...

Table 5 - FreePascal — (ELF)
Script Name: Author: Requires: Purpose:
Reverse Game David B. — (E-mail) FreePascal Port of the game of REVERSE.BAS from 100 BASIC Games book.
(blank) David B. — (E-mail) FreePascal .
(blank) David B. — (E-mail) FreePascal .



Rust source code

Add something here ...

Table 6 - Rust — (ELF)
Script Name: Author: Requires: Purpose:
Welcome David Billsbrough — (Email) Rust ??? (coming real soon)
daystogo.rs David Billsbrough — (Email) Rust Days to go calculator
(blank) David Billsbrough — (Email) Rust ??? (coming real soon)


Other Compilers

To be written later



Other Scripts

.....

Table 1
Script Name: Author: Requires: Purpose:
convert-temp.sh David B. — (email) bash, bc and printf Convert C to F degrees.
degree_conv_zsh.txt David B. — (E-mail) zsh, awk, bc, calc and lua Conversion of temperature using serveral CLI tools.
reverse.kt David B. — (E-mail) the Kotlin language The game of "Reverse" from 100 BASIC games
generic menu David B. — (E-mail) bash A generic menu is bash shell
b_trees.c David B. — (E-mail) the 'C' language The Binary Tree of Integers
(blank) David B. — (E-mail) bash, bc and printf description



Older Shell Scripts

Table 2
Script Name: Author: Requires: Purpose:
revised David — (email) date Print a revision datestamp.
clean-cr David — (email) tr Strip the CR character from Text files
julian David — (email) date Print the ’julian’ date for today
(unknown) David — (email) ... other description




  1. Project One — .
  2. Project Two — .
  3. Project Three — .




Revised: Friday, December 13, 2024 at 13:33:28 PM (EST)