Click to See Complete Forum and Search --> : shell script assistant in random title generation...


802.11
11-29-2002, 07:26 AM
shell script assistant in random title generation...
suppose logarithum
a[0]="One Plus One is Four"
a[1]="No news is good news"
...
...
a[n]="Save all your kisses for me"

integer =random(seed)

title=a[integer]


different title can be called out when the above shell script ( under redhat 7.x) is executed.

Can u assist me with the script. TIA

Rüpel
11-29-2002, 10:31 AM
the title of your console-window can be set with the command-prompt. this tutorial (http://www-106.ibm.com/developerworks/linux/library/l-tip-prompt/) is an excellent starting point for customizing your prompt (and setting the window-title that way)