mkscript
Saturday Dec 13 9:08:24 2025
------------------------------
I am writing 'mkscript'. What is 'mkscript'? Well, it is a script to
make scripts. Or even better it is a shell script template to help me.
I got the idea from a book I read many many years ago called "The
Linux Command Line" written by William E. Shotts Jr. On his website he
has got a similar script called new_script and I am looking at it
again to get some ideas.
Why? I really have no clue how to do it correctly. My idea is
something like this:
touch $1 && chmod +x $1 && echo $lines > $1 && $editor $1
So far I know for sure that the script has to include:
#!/bin/sh
# script made with mkscript
set -e
set -u
set -x
And then typical variables, functions and cases. So far I've got some,
but I feel like I need to do some more research to get some ideas and
maybe steal some good ones. There are many boilerplate templates
online.
I'll keep you informed!
______________________________________________________________________
Gophered by Gophernicus/1.6 on NetBSD/amd64 9.1