Hi Jeff, Yesterday, I was very tired to read code, at the time you sent it to me. Sorry ;-)
I took a look on and gonna play with it a little to see what I can get. Thank you very much for those tips. Cheers. 2011/3/30 Jeff Chimene <[email protected]> > Hi Paolo: > > I think you're going to need a list of project names, descriptons and > urls. You'd want to maintain this list in your favorite text editor. > Note that this technique requires Bash version >= 4. > =============== > > declare -a Projectos=("01 02") > > declare -A projectos > > projectos["name01"]="project01" > projectos["desc01"]="This is a description of the project #1\nIt can > have control characters" > projectos["url01"]="http://example.com/file00.zip > http://example.comfile01.zip" > > projectos["name02"]="project02" > projectos["desc02"]="#2\nIt can have control characters" > projectos["url02"]="http://example.com/file02.zip > http://example.comfile03.zip" > > =============== > > Given this list, you're going to want to display the project name and > description, then allow the user to select the desired project. Once the > user selects a project, the contents are downloaded via wget, and > entered into the LibreOffice environment via unopkg as mentioned by Drew > in an earlier thread. > > You can access the list as follows: > > #!/bin/bash > > source "projectos.dat" > > function get() { > NAME=${projectos[name$1]} > DESC=${projectos[desc$1]} > URL=${projectos[url$1]} > } > > for p in ${Projectos} > do > get $p > echo -e $NAME $DESC > for u in ${URL} > do > echo $u > done > done > > ============ > > Hopefully, this will be enough to get you started. > > -- > Unsubscribe instructions: E-mail to [email protected] > Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette > List archive: http://listarchives.libreoffice.org/www/projects/ > *All messages sent to this list will be publicly archived and cannot be > deleted* > > -- Paulo de Souza Lima Técnico em Eletrônica e Administrador http://www.pasl.net.br http://almalivre.wordpress.com Curitiba - PR Linux User #432358 Ubuntu User #28729 -- Unsubscribe instructions: E-mail to [email protected] Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/www/projects/ All messages sent to this list will be publicly archived and cannot be deleted
