Google "scripting your job"

To get ready
   Google "set up ssh keys"
   https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2


echo $PATH
grep "#\!/" /usr/sbin/*
grep "#\!/" /usr/sbin/* | grep perl
grep "#\!/" /usr/sbin/* | grep perl | wc -l
try bash and sh

PS:  All those spans were done with Emacs macros

find /usr/sbin -type f -exec grep "#\!/" {} \; -exec ls -l {} \;

find /usr/sbin -type f -exec grep -q "#\!/" {} \; -exec ls -l {} \;

Open up some of the "scripts"  --- This is as good as it gets
   /usr/sbin/luksformat !!

Try out /usr/bin... There are even more there!

Simple scripts

tools for use in shell -- expr, test, grep, sed, awk, find, tr, ps, head, tail
   [Many of the modern shells have built-ins for these

   https://www.tutorialspoint.com/unix/unix-arithmetic-operators.htm

The Linux Command Line
http://linuxcommand.org/tlcl.php
Learning the shell
 ASSIGNMENT FOR FRIDAY
   http://linuxcommand.org/lc3_learning_the_shell.php
   http://linuxcommand.org/lc3_writing_shell_scripts.php
   

No Starch Press
    Wicked Cool Shell Scripts
    Linux Basics for Hackers
    How Linux Works

Characteristics of "scripting"
   Programs may depend on system utilities
   May even look like commands invocations

JCL (huh?) -- MS-DOS
Rexx  -- everyone from IBM talked about it
   https://en.wikipedia.org/wiki/Rexx
   https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.2.0/com.ibm.cics.rexx.doc/topics/write.html
   https://www.cs.ox.ac.uk/people/ian.collier/Docs/rexx_info/whole.html


Linux shells  -- try them out
   https://en.wikipedia.org/wiki/Comparison_of_command_shells
   sh bash ksh csh tcsh zsh ash
   Bourn shell sh
       Stephen Bourne
       https://en.wikipedia.org/wiki/Bourne_shell
       https://www.shellscript.sh/
   C shell csh/tcsh
       Bill Joy
   Korn shell
       David Korn
       has arrays
   bash
       default for Linux and MacOS
       runs under Windows 10
   ash
       for busybox
tools for use in shell -- eval, test, grep, sed, awk, find, tr, ps, head, tail
   built-ins
   http://manpages.ubuntu.com/manpages/bionic/man7/bash-builtins.7.html
PowerShell -- windows
AppleScript -- Mac

****************************************************************
Google’s style guide for shells
Ryan’s tutorials  

IBM Developer Works for awk
IBM Developer Works for sed
**************************************************************
Perl, python, ruby, tcl (tk) -- php, XSLT?
   CGI is a browser interface that may be implemented by these
javascript -- it has the "script" in its name
   javascipt developed by Netscape...
guile -- scheme for scripting
   https://www.gnu.org/software/guile/
elisp scripts (teco scripts)

Specialized usages
    PHP
    TeX
       http://pgfplots.sourceforge.net/TeX-programming-notes.pdf
    PostScript
       https://www.adobe.com/content/dam/acom/en/devnet/actionscript/articles/PLRM.pdf  912 pages!!
    SQL
    XSLT...
    Lua
    Dart

And Python?  Scripting or general purpose

Linux-isms (p 708--
    Pipes and redirection          pipe
    standard input and output      dup, dup2
    process creation               exec, execve, wait
    (crude) process control        signal, kill
And all those shell references
    #!
    shebang -- built into the operating system!
It is possible to customize your shell experience


Text processing
    awk
    sed
    ed  -- try it out (Joe Daughterty insisted that 202 students knew it_

Perl -- a special case
    a "write only" language
    used by many sysadmin
    Larry Wall
    used for CGI scripts
       "the Swiss Army chainsaw of scripting languages"
    CPAN == huge (25000) collections of libraries, etc.    cf Python
        180,194 Perl modules in 39,688 distributions, written by 13,746 authors
    Perl 6 has lost   
    https://www.perl.org/app.html
    https://www.cpan.org/modules/index.html


https://www.activestate.com/blog/10-interesting-uses-perl-python-and-tcl/