Greetings, As I learn I need more features I have a System preparation script. I designed it specifically to walk customers through a setup process. We have a logo which I recreated out of hashes and stars ( # * ) The logo is 132 character wide and about 132 high. In the script, for each user input requirment I plonk the logo above it. Is there a way to recall the logo instead of pasting into the script 10 times? I hope you understand this. :'0 -- -- Chadley Wilson Production Line Superintendant Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================
Today at 9:01pm, Chadley Wilson wrote:
Greetings, As I learn I need more features
I have a System preparation script. I designed it specifically to walk customers through a setup process. We have a logo which I recreated out of hashes and stars ( # * ) The logo is 132 character wide and about 132 high.
In the script, for each user input requirment I plonk the logo above it. Is there a way to recall the logo instead of pasting into the script 10 times?
One way is to put the code emitting the logo into a shell script function inside the script itself, i.e.: #!/bin/sh # [...] function logo { cat <<ENDLOGO ###################********************################## This is the logo ###########***##################***##############*** ENDLOGO } [...] # print the logo here logo [...] # print the logo (again) here logo etc., etc. Jim Cunning
Chadley, On Thursday 08 September 2005 12:01, Chadley Wilson wrote:
Greetings, As I learn I need more features
I have a System preparation script. I designed it specifically to walk customers through a setup process. We have a logo which I recreated out of hashes and stars ( # * ) The logo is 132 character wide and about 132 high.
In the script, for each user input requirment I plonk the logo above it. Is there a way to recall the logo instead of pasting into the script 10 times?
It's difficult and subtle and arcane, but you could but your ASCII art logo in a file and "cat" it each time you need it. There's a BASH feature that allows an arbitrary command to be executed each time the prompt is about to be printed. Look for PROMPT_COMMAND in the BASH manual page. Do your users typically have terminal emulators configured for 132 columns and 132 rows?
I hope you understand this. :'0
Perhaps I don't...
-- Chadley Wilson
Randall Schulz
participants (3)
-
Chadley Wilson
-
Jim Cunning
-
Randall R Schulz