D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Long bash scripts

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Williams wrote:
| If you've got a bash script of say 150 lines and it fails at line 60,
is there
| a way of adapting the script to allow a restart at line 60?

tail -90 script | bash

;)

| How would the script be written to accept command line arguments to
jump to
| that line?

What did Larry say about allowing goto ?

-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB9VvjGFXfHI9FVgYRAsHXAJ40XELJGvEoxtRQLGEF6BRv9ZpsiQCfQb2P
ZuB+5hmLl251qP0jYu55wzI=
=ie1O
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.