title newscript
section 1
project bgscripts-core
volume General Commands Manual
date April 2020
=====
NAME
  newscript - initialize a new shell script from ftemplate.sh
SYNOPSIS
  newscript [-d {0..10}] [-uVf] [-i <initials>] <outfile>
OPTIONS
  -d {0..10}  Set debug level, with 10 as maximum verbosity.
  -u --usage  Show help message.
  -V --version  Show version number.
  -i --initials <initials>  Set `myscriptinitials`. See DESCRIPTION.
  <outfile>  Filename to generate.
DESCRIPTION
  Initialize <outfile> as a new shell script from the `ftemplate.sh(7)` which has a dependency on `framework.sh(7)` and had a large number of pre-built sections and functionality.
  If `myscriptinitials` variable is set from the `-i` flag, then all the abbreviated variable names in the template will be set with these initials. For example, to make a new script named "build_raging_bulls.sh" you would pass `-i BRB` which would set the useful variables from the template to be prepended with `BRB_`, including `BRB_TMPDIR` and `BRB_DEBUG`.
  This script will instantiate the new script and then open it in `vi(1)`.
AUTHOR
  <bgstack15@gmail.com>
COPYRIGHT
  CC-BY-SA 4.0
BUGS
  The editor is hardcoded.
SEE ALSO
`ftemplate.sh(7)`, `framework.sh(7)`
